fail();
} catch (HttpException e) { /* expected */ }
}
public void testParseInvalidInput() throws Exception {
CharArrayBuffer buffer = new CharArrayBuffer(32);
buffer.append("GET /stuff HTTP/1.1");
try {
RequestLine.parse(null, 0, 0);
fail("IllegalArgumentException should have been thrown");
} catch (IllegalArgumentException ex) {
// expected