mock out cli test cases