public static HttpRequest createRequest(HttpMethod httpMethod, String uri, HttpHeaders headers) {
    HttpRequest httpRequest = new DefaultHttpRequest(HttpVersion.HTTP_1_1, httpMethod, uri);
    if (headers != null) {
      httpRequest.headers().set(headers);
    }
    return httpRequest;
  }
Creates a {@link HttpRequest} with the given parameters.
@param httpMethod the {@link HttpMethod} required.
@param uri the URI to hit.
@return a {@link HttpRequest} with the given parameters.
ambry-rest/src/test/java/com/github/ambry/rest/RestTestUtils.java