private void verifyAbsolutePosition(Offset offset, long numLogSegmentsPreceding) {
    long expectedPosition = numLogSegmentsPreceding * state.log.getSegmentCapacity() + offset.getOffset();
    assertEquals("Position not as expected", expectedPosition, state.index.getAbsolutePositionInLogForOffset(offset));
  }
Verifies that the absolute position returned for {@code offset} is correct.
@param offset the {@link Offset} whose absolute position needs to be verified.
@param numLogSegmentsPreceding number of log segments that precede the log segment that contains {@code offset}.
ambry-store/src/test/java/com/github/ambry/store/IndexTest.java