@Override
  public void onAlterDatabase(AlterDatabaseEvent alterDatabaseEvent) {
    // The test doesn't create any database rename events, so it's fine to just check the new
    // database name.
    String dbName = alterDatabaseEvent.getNewDatabase().getName().toLowerCase();
    if (alterDatabaseEvent.isReplicated()) {
      addNameToEventMap(replicatedDbsForEvents, dbName, alterDatabaseEvent);
    } else {
      addNameToEventMap(nonReplicatedDbsForEvents, dbName, alterDatabaseEvent);
    }
  }
ReplMetaStoreEventListenerTestImpl - Implementation of MetaStoreEventListener to test
isReplicated flag in some of the tests.
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/ReplMetaStoreEventListenerTestImpl.java