@Test
  public void testAlterPartitionsCheckRollbackPartValsNull() throws Exception {
    createTable4PartColsParts(getClient());
    List<Partition> oldParts = getClient().listPartitions(DB_NAME, TABLE_NAME, (short) -1);
    Partition partition = new Partition(oldParts.get(0));
    partition.setValues(null);
    assertPartitionRollback(oldParts, Lists.newArrayList(partition));
  }
Test class for alter/rename partitions related methods on temporary tables.
ql/src/test/org/apache/hadoop/hive/ql/metadata/TestSessionHiveMetastoreClientAlterPartitionsTempTable.java