static void verifyCompactionDetails(CompactionDetails expectedCompactionDetails, BlobStore blobStore,
      CompactionPolicy compactionPolicy) throws StoreException {
    CompactionDetails compactionDetails = blobStore.getCompactionDetails(compactionPolicy);
    if (expectedCompactionDetails == null) {
      assertNull("CompactionDetails expected to be null ", compactionDetails);
    } else {
      assertEquals("Returned invalid time ", expectedCompactionDetails.getReferenceTimeMs(),
          compactionDetails.getReferenceTimeMs());
      assertEquals("Compaction range mismatch ", expectedCompactionDetails.getLogSegmentsUnderCompaction(),
          compactionDetails.getLogSegmentsUnderCompaction());
    }
  }
Verifies {@link BlobStore#getCompactionDetails(CompactionPolicy)} returns expected values i.e. {@code expectedCompactionDetails}
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/CompactionPolicyTest.java