}
public void testRLParseSuccess() throws Exception {
//typical request line
RequestLine requestline = BasicLineParser.parseRequestLine
("GET /stuff HTTP/1.1", null);
assertEquals("GET /stuff HTTP/1.1", requestline.toString());
assertEquals("GET", requestline.getMethod());
assertEquals("/stuff", requestline.getUri());
assertEquals(HttpVersion.HTTP_1_1, requestline.getProtocolVersion());
//Lots of blanks
requestline = BasicLineParser.parseRequestLine
(" GET /stuff HTTP/1.1 ", null);
assertEquals("GET /stuff HTTP/1.1", requestline.toString());
assertEquals("GET", requestline.getMethod());
assertEquals("/stuff", requestline.getUri());
assertEquals(HttpVersion.HTTP_1_1, requestline.getProtocolVersion());
//this is not strictly valid, but is lenient
requestline = BasicLineParser.parseRequestLine
("\rGET /stuff HTTP/1.1", null);
assertEquals("GET", requestline.getMethod());
assertEquals("/stuff", requestline.getUri());
assertEquals(HttpVersion.HTTP_1_1, requestline.getProtocolVersion());
}