private void assertIndexEntryEquals(IndexEntry expected, IndexEntry obtained) {
    assertEquals(expected.getKey(), obtained.getKey());
    assertEquals(expected.getValue().getOffset(), obtained.getValue().getOffset());
    assertEquals(expected.getValue().getSize(), obtained.getValue().getSize());
    assertEquals(expected.getValue().getFlags(), obtained.getValue().getFlags());
    assertEquals(expected.getValue().getExpiresAtMs(), obtained.getValue().getExpiresAtMs());
    assertEquals(expected.getValue().getOperationTimeInMs(), obtained.getValue().getOperationTimeInMs());
    assertEquals(expected.getValue().getOriginalMessageOffset(), obtained.getValue().getOriginalMessageOffset());
  }
Assert two {@link IndexEntry} are equal
@param expected the expected {@link IndexEntry}.
@param obtained the {@link IndexEntry} to check against {@code expected}.
ambry-store/src/test/java/com/github/ambry/store/IndexSegmentTest.java