private void inNoTtlUpdatePeriodTest() throws Exception {
    long bufferTimeSecs = new StoreConfig(new VerifiableProperties(properties)).storeTtlUpdateBufferTimeSeconds;
    long cutOffTimeMs = time.milliseconds() + TimeUnit.SECONDS.toMillis(bufferTimeSecs);
    // round up to 1s.
    MockId id = put(1, PUT_RECORD_SIZE, cutOffTimeMs - 1000).get(0);
    verifyTtlUpdateFailure(id, Utils.Infinite_Time, StoreErrorCodes.UpdateNotAllowed);
    // something that is AT cutoff time succeeds, round up to 1s.
    id = put(1, PUT_RECORD_SIZE, cutOffTimeMs + 1000).get(0);
    updateTtl(id);
    verifyTtlUpdate(id);
  }
Tests the case where the TTL update arrives when the the blob has not expired but cannot be TTL updated because
it is past the buffer time for TTL updates (i.e. expiry time of the blob is "too close")
@throws Exception
ambry-store/src/test/java/com/github/ambry/store/BlobStoreTest.java