@Test
  public void basicTest() throws Exception {
    refreshState(false, true, false);
    List<LogSegmentName> segmentsUnderCompaction = getLogSegments(0, 2);
    long deleteReferenceTimeMs = reduceValidDataSizeInLogSegments(segmentsUnderCompaction,
        state.log.getSegmentCapacity() - LogSegment.HEADER_SIZE);
    compactAndVerify(segmentsUnderCompaction, deleteReferenceTimeMs, true);
  }
A basic test for compaction that selects the first two log segments and compacts them into one log segment.
@throws Exception
ambry-store/src/test/java/com/github/ambry/store/BlobStoreCompactorTest.java