Willie Wonka and the Chocolate Factory was fiction, of course, but for a short time they did market a line of candy products under Willie Wonka's name due to the popularity of the book and the movie. The Scrumpdillicious bar was just a chocolate bar with peanuts, and the Everlasting Gobstoppers were just multi-colored jawbreakers, but it was fun while it lasted.
The product line, of course, ended in a bout of lawsuits that shut down the production of the Wonka line for good when the company came out with the Blueberry Pie gum.