@Test
  public void requestHandleOnDisconnectTest() throws Exception {
    // disonnecting the embedded channel, calls close of PubliAccessLogRequestHandler
    doRequestHandleTest(HttpMethod.POST, EchoMethodHandler.DISCONNECT_URI, true, false);
    doRequestHandleTest(HttpMethod.GET, EchoMethodHandler.DISCONNECT_URI, true, false);
    doRequestHandleTest(HttpMethod.DELETE, EchoMethodHandler.DISCONNECT_URI, true, false);
    // SSL enabled
    doRequestHandleTest(HttpMethod.POST, EchoMethodHandler.DISCONNECT_URI, true, true);
    doRequestHandleTest(HttpMethod.GET, EchoMethodHandler.DISCONNECT_URI, true, true);
    doRequestHandleTest(HttpMethod.DELETE, EchoMethodHandler.DISCONNECT_URI, true, true);
  }
Tests for the request handling flow on disconnect
@throws Exception
ambry-rest/src/test/java/com/github/ambry/rest/PublicAccessLogHandlerTest.java