Real-life mob wife Victoria Gotti appeared on the season 5 finale of The Real Housewives of New Jersey when it aired on Sunday.

Teresa Giudice and Victoria Gotti both appeared on the same season for Celebrity Apprentice. They competed against each other and later became best friends, Giduice revealed.

"When I was on Celebrity Apprentice, me and Victoria hit it off," Giudice said in her confessional. "She's been there for me. She's been a great friend."

When they met for lunch Giudice flat out told Gotti, "I don't want to talk about anything legal."

Giudice brought up her husband Joe Giudice's legal run-in for having a fake driver's license in his brother's name. The episode was filmed before Teresa and Joe's July 29 indictment for 39 charges related to financial fraud.

Gotti told her the most important thing was to stick by him.

"If things were to go bad with Joe, we know you're going to be there," she told Teresa.

"Of course," Teresa replied, "It's hard for me to talk about this because I don't know what the right thing to say is. Joe's nervous, I'm nervous, but you know what? We're strong and we're going to get through this."

Victoria told Teresa she could understand how she feels because her ex-husband served time in prison during their marriage.

"I lived through that and my ex-husband, unfortunately, did go to jail for a long time," she confided.

'The Real Housewives of New Jersey' Season 5 Finale Spoiler: Caroline Manzo's Husband Cheating Details WiIl Not Be Included [REPORT] 

Gotti then asked Teresa if she told her daughter Gia, 12, everything that is going on with her father. She said it was something she wish she had done.

"I wish I had done that with my children," Gotti confided. "I let them go to school and read this crap. They'll send you from a room crying. You can't believe how affected they are. It's a good thing to do," Victoria said. "A family is a family and it's going to go through strife.

"I lived through a trial and my ex was away for like eight or nine years. It's a mindset. I've learned to deal with it. As long as you stand at his side and have faith and know that it's going to be okay. And if it's not, you took your vows for better or for worse."

Teresa then vowed to stand by Joe "til the end."

'The Real Housewives of New Jersey' Season 5 Reunion Show Spoilers & PHOTOS: Teresa Giudice, Melissa Gorga, Caroline Manzo, Jacquline Laurita 

Gotti is the daughter of the late New York crime boss John "Dapper Don" Gotti. Her ex-husband is Carmine "The Bull" Agnello a reputed mob boss who served time for racketeering and tax evasion. Before he served time in prison, the former couple had three sons-- Carmine Agnello, Jr., John Gotti Agnello, and Frank Gotti Agnello.

Victoria divorced Agnello in 2002 after secret government recordings made prior to his arrest revealed he had an affair with his bookkeeper.

Victoria and her three sons later had their own reality show, Growing Up Gotti, which aired on the A & E network from 2004-2005.

The Real Housewives of New Jersey season 5 reunion show part one will air on Sunday, Oct. 6 at 9 p.m. EST on Bravo

'The Real Housewives of New Jersey' Season 5's Jacqueline Laurita Talks Penny's Autism Comment on 'Watch What Happens Live' (VIDEO)