@Test
void testEarlyEOF() {

    ByteBuffer buffer = BufferUtils.toBuffer(
            "GET /uri HTTP/1.0\r\n"
                    + "Content-Length: 20\r\n"
                    + "\r\n"
                    + "0123456789");
    HttpParser.RequestHandler handler = new Handler();
    HttpParser parser = new HttpParser(handler);
    parser.atEOF();
    parseAll(parser, buffer);
    assertEquals("GET", methodOrVersion);
    assertEquals("/uri", uriOrStatus);
    assertEquals("HTTP/1.0", versionOrReason);
    assertEquals("0123456789", content);
    assertTrue(early);
}