private HttpRequest createRequestWithHeaders(HttpMethod httpMethod, String uri) {
    long currentTime = System.currentTimeMillis();
    HttpRequest request = RestTestUtils.createRequest(httpMethod, uri, null);
    request.headers().set(HttpHeaderNames.CONTENT_TYPE, "dummy/content-type");
    request.headers().set(HttpHeaderNames.CONTENT_LENGTH, 100);
    request.headers().set(HttpHeaderNames.LOCATION, "dummyLocation");
    request.headers().set(HttpHeaderNames.LAST_MODIFIED, new Date(currentTime));
    request.headers().set(HttpHeaderNames.EXPIRES, new Date(currentTime + 1));
    request.headers().set(HttpHeaderNames.CACHE_CONTROL, "dummyCacheControl");
    request.headers().set(HttpHeaderNames.PRAGMA, "dummyPragma");
    request.headers().set(HttpHeaderNames.DATE, new Date(currentTime + 2));
    request.headers().set(MockNettyMessageProcessor.CUSTOM_HEADER_NAME, "customHeaderValue");
    return request;
  }
Creates a {@link HttpRequest} with some headers set that will be checked on response.
@param httpMethod the {@link HttpMethod} desired.
@param uri the URI to hit.
@return a link {@link HttpRequest} with some headers set.
ambry-rest/src/test/java/com/github/ambry/rest/NettyResponseChannelTest.java