@Test
  public void testListPartitionsWithAuthLowMaxParts() throws Exception {
    createTable4PartColsPartsAuthOn(getClient());
    List<Partition> partitions =
        getClient().listPartitionsWithAuthInfo(DB_NAME, TABLE_NAME, (short) 2, USER_NAME, Lists.newArrayList(GROUP));
    assertTrue(partitions.size() == 2);
    partitions.forEach(p -> assertAuthInfoReturned(USER_NAME, GROUP, p));
    assertPartitionsHaveCorrectParams(partitions);
    partitions = getClient().listPartitionsWithAuthInfo(DB_NAME, TABLE_NAME, (short) -1, USER_NAME,
        Lists.newArrayList(GROUP));
    assertTrue(partitions.size() == 4);
    partitions.forEach(p -> assertAuthInfoReturned(USER_NAME, GROUP, p));
    assertPartitionsHaveCorrectParams(partitions);
  }
Testing listPartitionsWithAuthInfo(String,String,short,String,List(String)) ->
        get_partitions_with_auth(String,String,short,String,List(String)).
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestListPartitions.java