@Override
  public void onCreateDatabase(CreateDatabaseEvent createDatabaseEvent) {
    String dbName = createDatabaseEvent.getDatabase().getName().toLowerCase();
    if (createDatabaseEvent.isReplicated()) {
      addNameToEventMap(replicatedDbsForEvents, dbName, createDatabaseEvent);
    } else {
      addNameToEventMap(nonReplicatedDbsForEvents, dbName, createDatabaseEvent);
    }
  }
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