@Test
  public void recoverySuccessTest() throws StoreException {
    state.advanceTime(1);
    singleSegmentRecoveryTest();
    if (isLogSegmented) {
      multipleSegmentRecoveryTest();
    }
    totalIndexLossRecoveryTest();
  }
Tests success cases for recovery.
Cases
1. Single segment recovery
2. Multiple segment recovery
3. Recovery after index is completely lost
In all cases, the tests also verify that end offsets are set correctly.
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/IndexTest.java