@Test
void testChunkEarlyEOF() {

    ByteBuffer buffer = BufferUtils.toBuffer(
            "GET /chunk HTTP/1.0\r\n"
                    + "Header1: value1\r\n"
                    + "Transfer-Encoding: chunked\r\n"
                    + "\r\n"
                    + "a;\r\n"
                    + "0123456789\r\n");
    HttpParser.RequestHandler handler = new Handler();
    HttpParser parser = new HttpParser(handler);
    parser.atEOF();
    parseAll(parser, buffer);
    assertEquals("GET", methodOrVersion);
    assertEquals("/chunk", uriOrStatus);
    assertEquals("HTTP/1.0", versionOrReason);
    assertEquals(1, headers);
    assertEquals("Header1", hdr[0]);
    assertEquals("value1", val[0]);
    assertEquals("0123456789", content);
    assertTrue(early);
}