private void verifyGetters(IndexValue value, LogSegmentName logSegmentName, long size, long offset,
      EnumSet<IndexValue.Flags> flags, long expiresAtMs, long originalMessageOffset, long operationTimeInMs,
      short accountId, short containerId, short lifeVersion) {
    assertEquals("Version is not as expected", version, value.getFormatVersion());
    assertEquals("Size is not as expected", size, value.getSize());
    assertEquals("Offset is not as expected", new Offset(logSegmentName, offset), value.getOffset());
    for (IndexValue.Flags flagToCheck : IndexValue.Flags.values()) {
      assertEquals("Flag " + flagToCheck + " status not as expected", flags.contains(flagToCheck),
          value.isFlagSet(flagToCheck));
    }
    assertEquals("ExpiresAtMs not as expected", expiresAtMs, value.getExpiresAtMs());
    assertEquals("Operation time mismatch", operationTimeInMs, value.getOperationTimeInMs());
    assertEquals("AccountId mismatch ", accountId, value.getAccountId());
    assertEquals("ContainerId mismatch ", containerId, value.getContainerId());
    assertEquals("Original message offset not as expected", originalMessageOffset, value.getOriginalMessageOffset());
    assertEquals("UpdateVersion mismatch", lifeVersion, value.getLifeVersion());
  }
Verifies the given {@code value} for the returns of the getters.
@param value the {@link IndexValue} that needs to be checked.
@param logSegmentName the name of the log segment containing the record for which {@code value} is the
{@link IndexValue}.
@param size the size expected in {@code value}.
@param offset the offset expected in {@code value}.
@param flags the flags set in {@code value}.
@param expiresAtMs the expected expiration time in {@code value}.
@param originalMessageOffset the original message offset expected in {@code value}.
@param operationTimeInMs the operation time in ms
@param accountId the accountId of the Index value
@param containerId the containerId of the Index value
@param lifeVersion the update version of the Index value
ambry-store/src/test/java/com/github/ambry/store/IndexValueTest.java