Professor Unrat, oder, Das Ende eines Tyrannen by Heinrich Mann (1917) — see its film and TV adaptations.