A bit more than ten years ago I worked for Ricoh on an embedded software that was reporting the state of printer.
Had a lot of fun trying to fold papers in different ways to try to trigger jams at different place of the printer to test that we were reporting jams accurately :)