private List<CompactionDetails> getCompactionDetailsList(int size) {
    List<CompactionDetails> detailsList = new ArrayList<>();
    long referenceTime = Utils.getRandomLong(TestUtils.RANDOM, 1000);
    for (int i = 0; i < size; i++) {
      CompactionDetails details = getCompactionDetails(referenceTime);
      detailsList.add(details);
    }
    return detailsList;
  }
Gets a {@link List<CompactionDetails>} of size {@code size} with random {@link CompactionDetails}.
@param size the number of {@link CompactionDetails} required.
@return a {@link List<CompactionDetails>} of size {@code size} with random {@link CompactionDetails}.
ambry-store/src/test/java/com/github/ambry/store/CompactionLogTest.java