private Pair<Offset, Offset> addOneIndexSegmentOffsetPair(LogSegmentName logSegmentName, CompactionLog cLog) {
    Offset before = new Offset(logSegmentName, LogSegment.HEADER_SIZE);
    Offset after = new Offset(logSegmentName.getNextGenerationName(), LogSegment.HEADER_SIZE);
    cLog.addBeforeAndAfterIndexSegmentOffsetPair(before, after);
    return new Pair<>(before, after);
  }
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