private void checkUndelete(IndexValue value, boolean expectedTtlUpdate, short expectedLifeVersion,
      short expectedAccountId, short expectedContainerId, long expectedSize, Offset expectedOffset,
      long expectedExpiresAtMs, long expectedOperationTime) {
    assertNotNull(value);
    assertTrue(value.isUndelete());
    assertFalse(value.isDelete());
    assertEquals(expectedTtlUpdate, value.isTtlUpdate());
    assertEquals(expectedLifeVersion, value.getLifeVersion());
    assertEquals(expectedAccountId, value.getAccountId());
    assertEquals(expectedContainerId, value.getContainerId());
    assertEquals(expectedSize, value.getSize());
    assertEquals(expectedOffset, value.getOffset());
    assertEquals(expectedExpiresAtMs, value.getExpiresAtMs());
    assertEquals(expectedOperationTime, value.getOperationTimeInMs());
  }
Tests and verifies an undelete with an expected life version
@param targetKey the {@link StoreKey} to look up
@param expectedLifeVersion the expected lifeVersion
@param expectTtlUpdateSet true when expecting ttl update flag is set from returned {@link IndexValue}
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/IndexTest.java