@Test(expected = MetaException.class)
  public void testAddPartitionSpecNullSpec() throws Exception {

    client.add_partitions_pspec(null);
  }
Tests for creating partitions from partition spec.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestAddPartitionsFromPartSpec.java