@Test
  public void testAuthzContextContentsCmdProcessorCmd() throws Exception {
    verifyContextContents("dfs -ls /", "-ls /");
  }
This factory creates a mocked HiveAuthorizer class.
Use the mocked class to capture the argument passed to it in the test case.
itests/hive-unit/src/test/java/org/apache/hive/jdbc/authorization/TestHS2AuthzContext.java