private void closeRequestAndValidate(NettyRequest nettyRequest, Channel channel) {
    nettyRequest.close();
    assertFalse("Request channel is not closed", nettyRequest.isOpen());
    assertTrue("Auto-read is not as expected", channel.config().isAutoRead());
  }
Closes the provided {@code nettyRequest} and validates that it is actually closed.
@param nettyRequest the {@link NettyRequest} that needs to be closed and validated.
@param channel the {@link Channel} over which the request was received.
ambry-rest/src/test/java/com/github/ambry/rest/NettyRequestTest.java