Sometimes truth is stranger than fiction – or at least just as strange. A plotline involving Felicity Huffman's "Desperate Housewives" character seems to have eerily foreshadowed her role in the largest-ever college admissions conspiracy prosecuted by the Justice Department.

In the fifth episode of Season 1 of the ABC comedy-drama, Huffman's character Lynette Scavo and her husband, Tom (Doug Savant), "donate" thousands of dollars to get their twin sons into an elite private school.

And it's the amount of money that has heads turning – Lynette paid $15,000 to get her sons into the school, the exact amount Huffman is accused of having paid to a made-up charitable organization that then helped her daughter cheat on the SATs.

The episode shows Lynette and Tom meeting with the school's headmaster, who remarks, "Your children's educational background is a bit more common than we would prefer." When scheming to fake the twins' "good behavior" fails, stacks of cash come in to play.

Lynette tells Tom that the headmaster recommended "a generous donation" to "ensure our kids beat" out another family for a spot at the private school. They come up with the money by selling Tom's boat, and secure the rowdy boys' place at the prestigious school.

College admissions scandal: Why we won't see mug shots for Lori Loughlin, Felicity Huffman

Meanwhile, Lori Loughlin, who was also indicted in the college bribery case, had a similarly eyebrow-raising TV show plot that also involved twin sons.

During a Season 6 episode of "Full House" titled "Be True to Your Preschool," Loughlin’s character, Becky Katsopolis, took the moral high road after her husband, Jesse (played by John Stamos), lied to get their twin boys into a prestigious preschool.

Aunt Becky eventually confessed that Uncle Jesse wasn't being honest about their sons, telling the admissions director, "Look … I have to be honest. … He may have embellished – lied – a bit on our application." The school official was understanding: "It only shows you want what's best for your boys."

According to the U.S. Attorney's Office in Boston, Loughlin and her husband, Mossimo Giannulli, allegedly agreed in July 2016 to pay bribes totaling $500,000 in exchange for getting their two daughters into the University of Southern California as purported crew athletes, even though neither participated in the sport.

College bribery scam: Can Felicity Huffman's and Lori Loughlin's careers ever recover from the scandal?

More: What do feds allege Felicity Huffman and Lori Loughlin did and what happens next?

More: David Mamet defends longtime pal Felicity Huffman in college admissions scam: 'Not guilty'

Contributing: Cydney Henderson, Maria Puente