}
public void testResetParser() 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);
ReadableByteChannel channel = newChannel("GET /whatever HTTP/1.0\r\nHeader: one\r\n\r\n");
requestParser.fillBuffer(channel);
HttpRequest request = (HttpRequest) requestParser.parse();