Trying to mock onCommand() method