@Override
  public void run(HookContext hookContext) throws Exception {
    hookList.add(hookContext);
  }
An ExecuteWithHookContext that stores HookContexts in memory and makes them available for reading
itests/hive-unit/src/test/java/org/apache/hive/jdbc/ReadableHook.java