}
public void testSimpleParsing() throws Exception {
HttpParams params = new BasicHttpParams();
SessionInputBuffer inbuf = new SessionInputBufferImpl(1024, 128, params);
HttpRequestFactory requestFactory = new DefaultHttpRequestFactory();
HttpRequestParser requestParser = new HttpRequestParser(inbuf, null, requestFactory, params);
requestParser.fillBuffer(newChannel("GET /whatever HTTP/1.1\r\nSome header: stuff\r\n\r\n"));
HttpRequest request = (HttpRequest) requestParser.parse();
assertNotNull(request);
assertEquals("/whatever", request.getRequestLine().getUri());