public static FullHttpRequest createFullRequest(HttpMethod httpMethod, String uri, HttpHeaders headers,
      byte[] content) {
    ByteBuf buf = content == null ? Unpooled.buffer(0) : Unpooled.wrappedBuffer(content);
    FullHttpRequest httpRequest = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, httpMethod, uri, buf);
    if (headers != null) {
      httpRequest.headers().set(headers);
    }
    return httpRequest;
  }
Creates a {@link FullHttpRequest} with the given parameters.
@param httpMethod the {@link HttpMethod} required.
@param uri the URI to hit.
@param content the content to add to the request
@return a {@link FullHttpRequest} with the given parameters.
ambry-rest/src/test/java/com/github/ambry/rest/RestTestUtils.java