assertEquals(1, request.getAllHeaders().length);
assertEquals("stuff more stuff", request.getFirstHeader("Some header").getValue());
}
public void testParsingBadlyFoldedFirstHeader() throws Exception {
SessionInputBuffer inbuf = new SessionInputBuffer(1024, 128);
HttpRequestFactory requestFactory = new DefaultHttpRequestFactory();
HttpRequestParser requestParser = new HttpRequestParser(inbuf, requestFactory);
requestParser.fillBuffer(newChannel("GET /whatev"));
HttpRequest request = (HttpRequest) requestParser.parse();