Fans of Les Miserables and How I Met Your Mother should love what happened on the most recent episode of Inside The Actors Studio. Neil Patrick Harris and Jason Segel broke out spontaneously with a duet of "Confrontation," a duet from the hit musical Les Miserables.

Any true fans of Neil Patrick Harris already know that he can sing through his time on Broadway, and his musical numbers as host of the Emmy Awards, but how many people knew that Jason Segel could sing too?

The two actors appeared on the Bravo series Inside The Actors Studio along with Cobie Smulders, Josh Radnor, and Alyson Hannigan in order to talk about the end of their hit comedy How I Met Your Mother. The series has been on for the past nine seasons, and will be coming to a close on Monday, March 31.

Neil Patrick Harris played the part of Javert, and Jason Segel portrayed Jean Valjean during the clip. The two of them had performed the song once already during an appearance on The Megan Mullaly Show back in 2006.

Upon a request from one of the students in the audience, they quickly tried to figure out who played which character the first time around, and Alyson Hannigan pointed out that it had been a long time since they sang that one.

On the recent episode of Inside The Actors Studio, a variety of things are discussed such as the actors' favorite scenes, and what it was like to work on the show together for such a long time. Any big fans of the show will likely want to check out the full episode here.

The cast and creators have both been talking about how emotional the finale is going to be, and how sad it will be to say goodbye to everyone. A theory that "The Mother" has been dead all along was also developed by fans recently, but Cristin Milioti, who plays the part of "The Mother," attempted to debunk that theory during a recent interview.

The series finale of How I Met Your Mother airs this Monday at 8 p.m. on CBS. Fans should finally able to find out how Ted meets "The Mother," and viewers will be treated to a one-hour episode for the finale.