@Test
void testHostPort() {

    ByteBuffer buffer = BufferUtils.toBuffer(
            "GET / HTTP/1.1\r\n"
                    + "Host: myhost:8888\r\n"
                    + "Connection: close\r\n"
                    + "\r\n");
    HttpParser.RequestHandler handler = new Handler();
    HttpParser parser = new HttpParser(handler);
    parser.parseNext(buffer);
    assertEquals("myhost", host);
    assertEquals(8888, port);
}