Assert.assertEquals(HttpResponseCodes.SC_FOUND, status);
Assert.assertEquals(method.getResponseHeader("content-type").getValue(), "text/plain");
byte[] responseBody = method.getResponseBody();
String response = new String(responseBody, "US-ASCII");
Assert.assertEquals("hello world", response);
method.releaseConnection();
client.getHttpConnectionManager().closeIdleConnections(0);
}
EmbeddedContainer.stop();
}