static void updateBlobTtl(ConnectedChannel channel, BlobId blobId, long ts, ServerErrorCode expectedError)
      throws IOException {
    TtlUpdateRequest ttlUpdateRequest = new TtlUpdateRequest(1, "updateBlobTtl", blobId, Utils.Infinite_Time, ts);
    DataInputStream stream = channel.sendAndReceive(ttlUpdateRequest).getInputStream();
    TtlUpdateResponse ttlUpdateResponse = TtlUpdateResponse.readFrom(stream);
    releaseNettyBufUnderneathStream(stream);
    Assert.assertEquals("Unexpected ServerErrorCode for TtlUpdateRequest", expectedError, ttlUpdateResponse.getError());
  }
Updates the TTL of the given {@code blobId}
@param channel the {@link ConnectedChannel} to make the {@link GetRequest} on.
@param blobId the ID of the blob to TTL update
@param ts the operation time
@param expectedError expected error code
@throws IOException
ambry-test-utils/src/main/java/com/github/ambry/server/ServerTestUtil.java