private void outputHivePrivilegeObjects(String prefix, List<HivePrivilegeObject> privilegeObjects) {
    if (!shouldOutputObjs) return;

    List<String> privStrs = new ArrayList<>(privilegeObjects.size());
    for (HivePrivilegeObject privilege : privilegeObjects) {
      privStrs.add(privilegeObjectToStringForTest(privilege));
    }

    if (privStrs.isEmpty()) return;

    // Sort to make test output stable
    Collections.sort(privStrs);

    LogHelper console = SessionState.getConsole();
    console.printInfo(prefix, false);
    for (String privStr : privStrs) {
      console.printInfo(privStr, false);
    }
  }
Extends SQLStdHiveAuthorizationValidator to relax the restriction of not
being able to run dfs,set commands. To be used for testing purposes only!

In addition, it parses a setting test.hive.authz.sstd.validator.bypassObjTypes
as a comma-separated list of object types, which, if present, it will bypass
validations of all input and output objects of those types.
itests/util/src/main/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/SQLStdHiveAuthorizationValidatorForTest.java