private void closeRequestAndValidate(NettyMultipartRequest request) {
    request.close();
    assertFalse("Request channel is not closed", request.isOpen());
  }
Closes the provided {@code request} and validates that it is actually closed.
@param request the {@link NettyMultipartRequest} that needs to be closed and validated.
ambry-rest/src/test/java/com/github/ambry/rest/NettyMultipartRequestTest.java