@Override
  public CurrentNotificationEventId getCurrentNotificationEventId() {
    CurrentNotificationEventId id = super.getCurrentNotificationEventId();
    if (getCurrNotiEventIdModifier != null) {
      id = getCurrNotiEventIdModifier.apply(id);
      if (id == null) {
        throw new RuntimeException("InjectableBehaviourObjectStore: Invalid getCurrentNotificationEventId");
      }
    }
    return id;
  }
A utility class to pass the arguments of the caller to the stub method.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/InjectableBehaviourObjectStore.java