method.releaseConnection();
}
{
// I'm testing unknown content-length here
GetMethod method = new GetMethod("http://localhost:8080/basic-integration-test/xml");
int status = client.executeMethod(method);
Assert.assertEquals(HttpResponseCodes.SC_OK, status);
String result = method.getResponseBodyAsString();
JAXBContext ctx = JAXBContext.newInstance(Customer.class);
Customer cust = (Customer)ctx.createUnmarshaller().unmarshal(new StringReader(result));
Assert.assertEquals("Bill Burke", cust.getName());