static void clearSanityMap(Map<String, Set<String>> map) {
    for (Set<String> eventEntry : map.values()) {
      if (eventEntry != null) {
        eventEntry.clear();
      }
    }
    map.clear();
  }
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