{
// Unmarshal report,
ClientRequest request = new ClientRequest(generateURL("/abc/pqr/xyz"));
Foo foo = new Foo("123");
request.body("application/foo", foo);
request.accept(MediaType.APPLICATION_XML);
ClientResponse<?> response = request.post(Foo.class);
Assert.assertEquals(500, response.getStatus());
ViolationReport report = response.getEntity(ViolationReport.class);
System.out.println("report: " + report);
countViolations(report, 1, 0, 0, 0, 0, 1);