@Test
    @Override
    public void addressesAndPorts_127001() throws Exception {
        final AggregatedHttpResponse response = WebClient.of(server().httpUri()).blocking()
                                                         .get("/jsp/addrs_and_ports.jsp");
        assertThat(response.status()).isSameAs(HttpStatus.OK);
        assertThat(response.contentType().toString()).startsWith("text/html");
        final String actualContent = CR_OR_LF.matcher(response.contentUtf8())
                                             .replaceAll("");
        assertThat(actualContent).matches(
                "<html><body>" +
                "<p>RemoteAddr: 127\\.0\\.0\\.1</p>" +
                "<p>RemoteHost: 127\\.0\\.0\\.1</p>" +
                "<p>RemotePort: [1-9][0-9]+</p>" +
                "<p>LocalAddr: (?!null)[^<]+</p>" +
                // In Jetty 12, ServletRequest.getLocalName() returns the IP address if it is resolved.
                "<p>LocalName: 127\\.0\\.0\\.1</p>" +
                "<p>LocalPort: " + server().httpPort() + "</p>" +
                "<p>ServerName: 127\\.0\\.0\\.1</p>" +
                "<p>ServerPort: " + server().httpPort() + "</p>" +
                "</body></html>");
    }
Makes sure asynchronous streaming works for various sizes of responses.
jetty/jetty12/src/test/java/com/linecorp/armeria/server/jetty/JettyServiceTest.java