The story
Coined by American writer Joseph Heller in 1961 in his novel Catch-22, in which the main character feigns madness in order to avoid dangerous combat missions, but his desire to avoid them is taken to prove his sanity.
Etymology from Wiktionary, CC BY-SA 4.0.