GetMethod getMethod = new GetMethod(newPostURILocation);
client.executeMethod(getMethod);
assertEquals(200, getMethod.getStatusCode());
Comment c =
(Comment)JAXBContext.newInstance(Comment.class.getPackage().getName())
.createUnmarshaller().unmarshal(getMethod.getResponseBodyAsStream());
assertEquals("Anonymous", c.getAuthor());
assertEquals(1, c.getId().intValue());
assertEquals("Hello World!", c.getMessage());
}