A word for expressing an opinion that one does not subscribe to?

Why I'm asking: I recently wrote a blog post in which I used an example that might be (and, it turns out, is) considered sexist. I'm not sexist whatsoever though, and used this example merely because it's a cliché theme everybody is familiar with which served the purpose of the blog post well. I then kept returning to this theme throughout the post as a running joke.

My Question: Is there a word for the approach I chose in my post of writing from a perspective where one seems to subscribe to certain principles or ideas while the author's mentality in the matter is in fact the opposite of what he expresses in writing?

The word 'Irony' does not quite seem to fit the bill in this case, I believe?

(I hope my question is clear, kind of hard to explain the concept.)


Solution 1:

I would suggst that you may be:

Playing the Devil’s Advocate

See the following definition and example from the online Oxford English Dictionary:

devil's advocate

A person who expresses a contentious opinion in order to provoke debate or test the strength of the opposing arguments.

‘the interviewer will need to play devil's advocate, to put the other side's case forward’