}
@Test(expectedExceptions = IllegalStateException.class)
public void output_cause_exception() throws URISyntaxException, IOException {
Request request = createRequest("http://www.google.com");
request.output(System.out);
}
@Test
public void toMessage() throws URISyntaxException, IOException {
assertion("http://www.google.com/search?q=http4j", "POST /search HTTP/1.1\r\nHost:www.google.com\r\n" + getDefaultHeaderString() + "Content-Length:8\r\n\r\nq=http4j");