Unit test Cmd.java