@Override
  public Partition getPartition(String catName, String dbName, String tableName,
                                List<String> partVals) throws NoSuchObjectException, MetaException {
    return getPartitionModifier.apply(super.getPartition(catName, dbName, tableName, partVals));
  }
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