private String privilegeObjectToStringForTest(HivePrivilegeObject privObj) {
    StringBuilder sb = new StringBuilder("HIVE PRIVILEGE OBJECT {");
    addIfNotNull(sb, "objectName:", privObj.getObjectName());
    addIfNotNull(sb, "type:", privObj.getType());
    addIfNotNull(sb, "actionType:", privObj.getActionType());
    addIfNotNull(sb, "dbName:", privObj.getDbname());
    // these two are all caps to prevent these being masked, since the word [Oo]wner is masked by qtests
    addIfNotNull(sb, "OWNER:", privObj.getOwnerName());
    addIfNotNull(sb, "OWNERTYPE:", privObj.getOwnerType());
    addIfNotNull(sb, "columns:", privObj.getColumns());
    addIfNotNull(sb, "partKeys", privObj.getPartKeys());
    addIfNotNull(sb, "commandKeys", privObj.getCommandParams());;
    sb.append("}");
    return sb.toString();
  }
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