Some writers use literature to comment on politics by creating an allegory in which the characters and plot correspond to what people and events?
That depends on the skill of the writer and what he/she is trying to say. Current events are popular, as are war-time scenarios where questions of cowardice, bravery, and performance under pressure can be daily events.