@AfterClass
  public static void tearDown() throws Exception {
    if (client != null) {
      // make sure tear down works
      DummyAuthorizationListenerImpl.throwExceptionAtCall = false;

      client.dropDatabase(dbName1, true, true, true);
      client.dropDatabase(dbName2, true, true, true);
      client.close();
    }
  }
Implementation of MetaStorePreEventListener that throws MetaException when configured in
its function onEvent().
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestHmsServerAuthorization.java