When Madame Bovary was written in the 1850s, it fell under the accusing eye of the French government for its perceived immorality. Flaubert recognized that the trial would only stoke interest, and that it would set the tone for his career.
Research:

Behind the Scenes Minis: Paddles and The British Museum
31:02

Ashurbanipal
37:29

Six Impossible Episodes: Back-to-Court
41:15