private static void assertAuthInfoReturned(String user, String group, Partition partition) {
    assertNotNull(partition.getPrivileges());
    assertEquals(Lists.newArrayList(),
        partition.getPrivileges().getUserPrivileges().get(user));
    assertEquals(Lists.newArrayList(),
        partition.getPrivileges().getGroupPrivileges().get(group));
    assertEquals(Lists.newArrayList(),
        partition.getPrivileges().getRolePrivileges().get("public"));
  }
API tests for HMS client's getPartitions methods.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestGetPartitions.java