}
@Test
public void notFoundTestWithListener() throws IOException {
WebClient wc = new WebClient();
WebResponse wr = wc.raw("GET", "http://localhost:" + port + "/not-found", null, new SimpleWebClientListener());
assertEquals(404, wr.getStatus());
assertEquals("Not Found", wr.getMessage());
assertEquals("text/html; charset=utf-8", wr.getHeaders().get("Content-Type").get(0));
assertEquals("Hello World", new String(wr.getBody()));