static void putBlob(PutRequest putRequest, ConnectedChannel channel, ServerErrorCode expectedErrorCode)
      throws IOException {
    DataInputStream putResponseStream = channel.sendAndReceive(putRequest).getInputStream();
    PutResponse response = PutResponse.readFrom(putResponseStream);
    releaseNettyBufUnderneathStream(putResponseStream);
    Assert.assertEquals(expectedErrorCode, response.getError());
  }
putBlob and verify the return status
@param putRequest the {@link PutRequest}
@param channel the {@link ConnectedChannel} to send the request and receive the response
@param expectedErrorCode expected server error code.
@throws IOException
ambry-test-utils/src/main/java/com/github/ambry/server/ServerTestUtil.java