MX Interview Question

How would you test a broken vending machine?