private void checkExpiryTimeMatch(Payload payload, long actualExpiryTimeMs, String context) {
    long expectedExpiryTimeMs = ServerTestUtil.getExpiryTimeMs(payload.blobProperties);
    if (actualExpiryTimeMs != expectedExpiryTimeMs) {
      String exceptionMsg =
          "Expiry time (props) not matching in context " + context + " expected " + expectedExpiryTimeMs + " actual "
              + actualExpiryTimeMs;
      System.out.println(exceptionMsg);
      throw new IllegalStateException(exceptionMsg);
    }
  }
Checks that the actual expiry time matches what is in the payload.
@param payload the payload that was provided to the PUT
@param actualExpiryTimeMs the actual expiry time received
@throws IllegalStateException if the times don't match
ambry-test-utils/src/main/java/com/github/ambry/server/Verifier.java