Simple test framework to record and check command behaviors