@Test(expected = MetaException.class)
  public void testListPartitionNamesNoDbName() throws Exception {
    createTable4PartColsParts(client);
    try {
      client.listPartitionNames("", TABLE_NAME, (short) -1);
    } catch (NoSuchObjectException e) {
      //TODO: should not throw different exceptions for different HMS deployment types
      throw new MetaException(e.getMessage());
    }
  }
Testing listPartitionNames(String,String,short) ->
        get_partition_names(String,String,short).
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestListPartitions.java