Vending Machine is the classic State pattern example and tests whether you can model a system with clear, mutually exclusive states.
Enable JavaScript for the full StreamPrep guide.