private Set<MockId> createStateWithTtlUpdatesAndDeletes() throws Exception {
    Set<MockId> ids = new HashSet<>();
    refreshState(false, false, false);
    int numEntries = (int) ((state.log.getSegmentCapacity() - LogSegment.HEADER_SIZE) / (TTL_UPDATE_RECORD_SIZE
        + DELETE_RECORD_SIZE));
    for (int i = 0; i < numEntries; i++) {
      MockId id = state.getUniqueId();
      state.makePermanent(id, true);
      state.addDeleteEntry(id);
      ids.add(id);
    }
    // add put entries so that the log segment rolls over
    writeDataToMeetRequiredSegmentCount(state.index.getLogSegmentCount() + 1, null);
    // reload index to make sure journal is on only the latest log segment
    state.reloadIndex(true, false);
    return ids;
  }
Creates state required for some TTL update specific tests that need TTL updates and DELETEs only.
@return the {@link MockId}s for which TTL updates and deletes were added.
@throws Exception
ambry-store/src/test/java/com/github/ambry/store/BlobStoreCompactorTest.java