Many character roles have stereotypically defined behavior, e.g. macho soldiers or helpless princesses. Sometimes authors intentionally defy those stereotypes for humor, and to call attention to readers' usual assumptions.
What is the name of this literary device, where an author flouts a stereotype for humor?
I can't think of an appropriate word (or even short phrase) for the life of me. Any thoughts appreciated.
For example, a comic depicts Shaolin monks, but instead of following their stereotype of being silent and serious, there is corny humor and a spit-take.