@Test
  public void testGetPartitionsByNames1() throws HiveException {
    GetPartitionsByNamesRequest req = new GetPartitionsByNamesRequest();
    req.setDb_name(DB_NAME);
    req.setTbl_name(TABLE_NAME);
    hive.getPartitionsByNames(req, t);
  }
TestHiveMetaStoreClientApiArgumentsChecker

This class works with {@link TestHiveMetaStoreClient} in order to verify the arguments that
are sent from HS2 to HMS APIs.
ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHiveMetaStoreClientApiArgumentsChecker.java