@Test
  public void testAlterPartitionsCheckRollbackNullPartitions() throws Exception {
    createTable4PartColsParts(getClient());
    assertPartitionRollback(getClient().listPartitions(DB_NAME, TABLE_NAME, (short) -1),
        Lists.newArrayList(null, null));
  }
Test class for alter/rename partitions related methods on temporary tables.
ql/src/test/org/apache/hadoop/hive/ql/metadata/TestSessionHiveMetastoreClientAlterPartitionsTempTable.java