The Mousetrap
Tom Stoppard's 1968 play "The Real Inspector Hound" parodies many elements of "The Mousetrap", including the surprise ending.