@AfterClass
  public static void tearDownAfterClass() {

    if (msClient != null) {
      msClient.close();
    }
    if (driver != null) {
      driver.close();
    }

  }
Tests DbNotificationListener when used as a transactional event listener
(hive.metastore.transactional.event.listeners)
itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/TestDbNotificationListener.java