@Test
void testResponseReasonIso8859_1() {

    ByteBuffer buffer = BufferUtils.toBuffer(
            "HTTP/1.1 302 déplacé temporairement\r\n"
                    + "Content-Length: 0\r\n"
                    + "\r\n", StandardCharsets.ISO_8859_1);
    HttpParser.ResponseHandler handler = new Handler();
    HttpParser parser = new HttpParser(handler);
    parser.parseNext(buffer);
    assertEquals("HTTP/1.1", methodOrVersion);
    assertEquals("302", uriOrStatus);
    assertEquals("déplacé temporairement", versionOrReason);
}