@Override
  public List<String> listPartitionNames(String catName, String dbName, String tableName, short max)
          throws MetaException {
    return listPartitionNamesModifier.apply(super.listPartitionNames(catName, dbName, tableName, max));
  }
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