@Test
void testResponse101WithTransferEncoding() {

    ByteBuffer buffer = BufferUtils.toBuffer(
            "HTTP/1.1 101 switching protocols\r\n"
                    + "Transfer-Encoding: chunked\r\n"
                    + "\r\n");
    HttpParser.ResponseHandler handler = new Handler();
    HttpParser parser = new HttpParser(handler);
    parser.parseNext(buffer);
    assertEquals("HTTP/1.1", methodOrVersion);
    assertEquals("101", uriOrStatus);
    assertEquals("switching protocols", versionOrReason);
    assertNull(content);
    assertTrue(headerCompleted);
    assertTrue(messageCompleted);
}