private PartitionObjectsAndNames createPartitionObjects(Table table) {
    List<String> partColNames = new ArrayList<>();
    for (FieldSchema col : table.getPartitionKeys()) {
      partColNames.add(col.getName());
    }
    List<Partition> ptns = new ArrayList<>();
    List<String> ptnNames = new ArrayList<>();
    List<String> ptnCol1Vals = Arrays.asList("a", "b", "c", "d", "e");
    List<String> ptnCol2Vals = Arrays.asList("1", "2", "3", "4", "5");
    for (String ptnCol1Val : ptnCol1Vals) {
      for (String ptnCol2Val : ptnCol2Vals) {
        List<String> partVals = Arrays.asList(ptnCol1Val, ptnCol2Val);
        Partition ptn = createPartition(table, partVals);
        ptn.setCatName(DEFAULT_CATALOG_NAME);
        ptns.add(ptn);
        ptnNames.add(FileUtils.makePartName(partColNames, partVals));
      }
    }
    return new PartitionObjectsAndNames(ptns, ptnNames);
  }
Create 25 partition objects for table returned by createPartitionedTableObject
Partitions are: a/1, a/2, ... e/4, e/5
@param table the table for which the partitions are created
@return an object encapsulating the partition objects and names
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/cache/TestCachedStore.java