@Test
  public void headersPresenceTest() throws ParseException {
    HttpRequest request = createRequestWithHeaders(HttpMethod.GET, TestingUri.CopyHeaders.toString());
    HttpUtil.setKeepAlive(request, false);
    EmbeddedChannel channel = createEmbeddedChannel();
    channel.writeInbound(request);

    HttpResponse response = channel.readOutbound();
    assertFalse("Channel not closed on the server", channel.isActive());

    checkHeaders(request, response);
  }
Sends a request with certain headers that will copied into the response. Checks the response for those headers to
see that values match.
@throws ParseException
ambry-rest/src/test/java/com/github/ambry/rest/NettyResponseChannelTest.java