protected void assertNoPrivileges(CommandProcessorException ret){
    assertNotNull(ret);
    assertFalse(0 == ret.getResponseCode());
    assertTrue(ret.getMessage().indexOf("No privilege") != -1);
  }
TestClientSideAuthorizationProvider : Simple base test for client side
Authorization Providers. By default, tests DefaultHiveAuthorizationProvider
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/security/TestClientSideAuthorizationProvider.java