@Override
  public void onAlterTable(AlterTableEvent alterTableEvent) {
    // Test doesn't have table rename events, since we are only interested in checking replication
    // status. So, it's fine to get the names from the new table.
    String dbName = alterTableEvent.getNewTable().getDbName();
    String tblName = alterTableEvent.getNewTable().getTableName();
    if (alterTableEvent.isReplicated()) {
      addNameToEventMap(replicatedDbsForEvents, dbName, alterTableEvent);
      addNameToEventMap(replicatedTablesForEvents, tblName, alterTableEvent);
    } else {
      addNameToEventMap(nonReplicatedDbsForEvents, dbName, alterTableEvent);
    }
  }
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