NEW BRUNSWICK - An aspiring mobster testified Wednesday he never wanted to kill his longtime friend in 2011, but he was told by his close confidant who claimed to have connections to the Mafia, the Edison man was a snitch who "needed to be taken care of."

The hit had been ordered on Kelvin Dumo for $50,000, and since Daniel Medaglia brought the 28-year-old into Michael Doce's life, the contract was his responsibility, according to his second day of testimony in Middlesex County Superior Court.

So on Nov. 6, 2011, Medaglia took Dumo to the Viking Terminal in Sayreville and bludgeoned him with him a pickaxe.

Medaglia, 32, has admitted to the brutal murder and is serving a 30-year prison sentence as part of a deal requiring him to testify against Doce, who prosecutors say orchestrated the killing of Dumo through lies and manipulation.

Doce faces charges of murder and conspiracy. His defense attorney Eric Breslin says his client was playing games with Medaglia and he never intended for anyone to get hurt.

Medaglia took the stand for the second day as the state's key witness against Doce, where he detailed the months leading up to the murder. His testimony could drag through next week as both sides work through dozens of objections in the case.

Doce was someone Medaglia said he believed was a made-man in the New Jersey Mafia and could set him up with a better life. He was someone he wanted to impress, but also someone he feared, Medaglia said.

"I was afraid I'd be murdered," Medaglia said in front of a jury of 10 women and six men in the second week of the expected five-week trial.

The two were best friends in the months leading up to the murder of Dumo, Medaglia testified.

Medaglia said Doce, who lived in Woodbridge, was continuously bringing up his ties to the mob and that Dumo was putting him in jeopardy.

"[Doce] said, 'This is getting serious' and that 'something needed to be done soon," Medaglia said, recalling a conversation between the two in the summer of 2011.

"What was that something?" Assistant Prosecutor Vincent Vitale asked.

"That we... that I, needed to kill him," Medaglia responded.

Doce talked often of an "Uncle Paulie," who he claimed ran the Genovese crime family in New Jersey, and he was his underboss, according to testimony.

Medaglia said he would get phone calls from Doce's uncle, who would call from a blocked number, telling him he was impressed and could soon get his own operation in the state.

On one of the calls, "Uncle Paulie" told Medaglia of a $50,000 hit on Dumo.

"It would be my job to handle since I introduced Mike [to Dumo]," Medaglia said. "Once we were done I'd receive payment."

The call came after Doce had said he saw Dumo meeting with police near the Edison Municipal Complex following an incident at a 7-Eleven where Dumo was arrested, Medaglia testified.

Doce also claimed Dumo would show up at Medaglia's house wearing a wire shortly later, according to testimony. So when Dumo came to Medaglia's door, the Edison man, turned the sprinklers on in hopes to fry the electronics, he testified.

Medaglia had already cut Dumo out of his life because Doce believed he was an informant for the police.

Doce had claimed to have people inside local, state and federal agencies with inside information. He had also offered to get the charges dropped against Dumo in exchange for $500 to pay off the "crooked cops."

"These things aren't that far fetched in New Jersey," Medaglia said.

Medaglia testified that Doce told him to reconnect with Dumo again in the weeks before the murder, saying it would be easier for him to earn his trust rather than Doce.

Medaglia was to take Dumo to the Viking Terminal, a place that Doce had bragged about killing nine people and hiding the remains with help from connected men on site, according to testimony.

"Taking someone to a Vikings' game," was the code the two would use over text for a murder, Medaglia testified.

Medaglia, who admitted he was a pill addict in 2011, testified that he had hit rock bottom and strived to impress Doce so he could work his way up the ladder in the Mafia.

The trial is set to continue Thursday with Medaglia back on the stand after both sides come to an agreement on the text messages that jury should see in the proceedings.

Craig McCarthy may be reached at CMcCarthy@njadvancemedia.com. Follow him on Twitter @createcraig and on Facebook here. Find NJ.com on Facebook.

Have a tip? Tell us. nj.com/tips