List<Header> headers = new LinkedList<Header>();
headers.add(new BasicHeader("Connection", "Close"));
HttpParams params = new BasicHttpParams();
params.setParameter("http.default-headers", headers);
HttpClient httpclient = new DefaultHttpClient(params);
HttpGet httpget = new HttpGet("http://localhost:" + PORT + "/capturing/r1911");
HttpResponse response = httpclient.execute(httpget);
assertNotNull(response);
assertEquals(404, response.getStatusLine().getStatusCode());
assertEquals(new ProtocolVersion("HTTP", 1, 1), response.getStatusLine().getProtocolVersion());
assertEquals("Not Found", response.getStatusLine().getReasonPhrase());