@Test
    public void testGetAllPartitionsOf() throws Exception {
        Set<org.apache.hadoop.hive.ql.metadata.Partition> part = hive.getAllPartitionsOf(hive.getTable(dbName, tableName));
        Assert.assertEquals(part.size(), NUM_PARTITIONS);
    }
Tests the number of partitions recieved from the HMS

@throws Exception
ql/src/test/org/apache/hadoop/hive/ql/exec/TestGetPartitionInBatches.java