protected void addPartitionsToCompact(int numPartitions) {
    IntStream.rangeClosed(1, numPartitions)
        .forEach(i -> partitionMap.put(new MockPartitionId(i, MockClusterMap.DEFAULT_PARTITION_CLASS), null));
  }
Adds some partitions to compact
@param numPartitions Number of partitions to compact
ambry-cloud/src/test/java/com/github/ambry/cloud/CloudStorageCompactorTest.java