private void add_partition(HiveMetaStoreClient client, Table table,
      List<String> vals, String location) throws TException {
    Partition part = makePartitionObject(table.getDbName(), table.getTableName(), vals, table, location);
    client.add_partition(part);
  }
Test "like" filtering on table with single partition.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java