assertEquals(HttpVersion.HTTP_1_1, requestline.getHttpVersion());
}
public void testConstructorInvalidInput() {
try {
new BasicRequestLine(null, "/stuff", HttpVersion.HTTP_1_1);
fail("IllegalArgumentException should have been thrown");
} catch (IllegalArgumentException e) { /* expected */ }
try {
new BasicRequestLine("GEt", null, HttpVersion.HTTP_1_1);
fail("IllegalArgumentException should have been thrown");
} catch (IllegalArgumentException e) { /* expected */ }
try {
new BasicRequestLine("GET", "/stuff", (HttpVersion)null);
fail("IllegalArgumentException should have been thrown");
} catch (IllegalArgumentException e) { /* expected */ }
}