public static ListenerEvent getLastEvent() {
    if (notifyList.isEmpty()) {
      return null;
    } else {
      return notifyList.get(notifyList.size() - 1);
    }
  }
@return The last event received, or null if no event was received.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/DummyListener.java