private Pair<Offset, Offset> addOneIndexSegmentOffsetPair(CompactionLog cLog) {
    LogSegmentName logSegmentName = cLog.getCompactionDetails().getLogSegmentsUnderCompaction().get(0);
    return addOneIndexSegmentOffsetPair(logSegmentName, cLog);
  }
Checks that transitions to phases in {@code transitionToFailures} fails.
@param cLog the {@link CompactionLog} being used.
@param transitionToFailures the list of phases, transition to which should fail.
ambry-store/src/test/java/com/github/ambry/store/CompactionLogTest.java