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

    HttpResponse response = channel.readOutbound();
    assertEquals("Unexpected response status", HttpResponseStatus.ACCEPTED, response.status());
    assertFalse("Channel not closed on the server", channel.isActive());
  }
Tries different exception scenarios for {@link NettyResponseChannel#setRequest(NettyRequest)}.
ambry-rest/src/test/java/com/github/ambry/rest/NettyResponseChannelTest.java