private void checkIndexValue(MockId id) throws StoreException {
    IndexValue value = state.getExpectedValue(id, false);
    IndexValue valueFromStore = state.index.findKey(id);
    assertEquals("Unexpected size in IndexValue", value.getSize(), valueFromStore.getSize());
    assertEquals("Unexpected expiresAtMs in IndexValue", value.getExpiresAtMs(), valueFromStore.getExpiresAtMs());
    assertEquals("Unexpected op time in IndexValue ", value.getOperationTimeInMs(),
        valueFromStore.getOperationTimeInMs());
    assertEquals("Unexpected account ID in IndexValue", value.getAccountId(), valueFromStore.getAccountId());
    assertEquals("Unexpected container ID in IndexValue", value.getContainerId(), valueFromStore.getContainerId());
    assertEquals("Unexpected flags in IndexValue", value.getFlags(), valueFromStore.getFlags());
  }
Checks that the {@link IndexValue} obtained from store matches what is expected.
@param id the {@link MockId} of the blob whose {@link IndexValue} needs to be checked.
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/BlobStoreCompactorTest.java