@Override
  public boolean alterDatabase(String catalogName, String dbname, Database db)
          throws NoSuchObjectException, MetaException {
    if (callerVerifier != null) {
      CallerArguments args = new CallerArguments(dbname);
      callerVerifier.apply(args);
    }
    return super.alterDatabase(catalogName, dbname, db);
  }
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