private CompactionDetails getCompactionDetails(long referenceTime) {
    int segmentCount = TestUtils.RANDOM.nextInt(10) + 1;
    List<LogSegmentName> segmentsUnderCompaction = new ArrayList<>();
    for (int j = 0; j < segmentCount; j++) {
      LogSegmentName segmentName = StoreTestUtils.getRandomLogSegmentName(generatedSegmentNames);
      generatedSegmentNames.add(segmentName);
      segmentsUnderCompaction.add(segmentName);
    }
    return new CompactionDetails(referenceTime, segmentsUnderCompaction, null);
  }
A {@link CompactionDetails} with random data.
@param referenceTime the reference time to use to generate the {@link CompactionDetails}
@return {@link CompactionDetails} with random data.
ambry-store/src/test/java/com/github/ambry/store/CompactionLogTest.java