private void addNameToEventMap(Map<String, Set<String>> eventMap, String name,
                                 ListenerEvent event) {
    String eventType = event.getClass().getName();
    Set<String> eventNames = eventMap.get(eventType);
    if (eventNames == null) {
      eventNames = new HashSet<>();
      eventMap.put(eventType, eventNames);
    }
    eventNames.add(name.toLowerCase());
  }
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