Sarcasm in literature is a virtual tradition. It goes back to the ancient Greeks. Aeschylus wrote The Golden Ass, a send up of Greek customs circa 455BC. It's also common in folk ballads, poetry and, of course, satire. In modern times it's become a primary literary form of social commentary.
Examples of Sarcasm in Literature:
|Voltaire: Candide: The saga of a confirmed optimist, Dr. Pangloss, and his half witted associate, Candide.|
Orwell: 1984: The story of human society under a propaganda based tyranny.
Aldous Huxley: Brave New World: A world in which almost nobody is born naturally, but in incubation chambers, including classes of society like Alphas and Epsilon Semi Morons.