@AfterClass
  public static void afterTest() throws Exception {
    if (miniHS2.isStarted()) {
      miniHS2.stop();
    }
  }
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