@Test
void testCachedField() {

    ByteBuffer buffer = BufferUtils.toBuffer(
            "GET / HTTP/1.1\r\n" +
                    "Host: www.smh.com.au\r\n" +
                    "\r\n");
    HttpParser.RequestHandler handler = new Handler();
    HttpParser parser = new HttpParser(handler);
    parseAll(parser, buffer);
    assertEquals("www.smh.com.au", parser.getFieldCache().get("Host: www.smh.com.au").getValue());
    HttpField field = fields.get(0);
    buffer.position(0);
    parseAll(parser, buffer);
    assertSame(field, fields.get(0));
}