{
// Unmarshal report,
ClientRequest request = new ClientRequest(generateURL("/a/b/c"));
Foo foo = new Foo("p");
request.body("application/foo", foo);
request.accept(MediaType.APPLICATION_XML);
ClientResponse<?> response = request.post(Foo.class);
Assert.assertEquals(400, response.getStatus());
ViolationReport report = response.getEntity(ViolationReport.class);
System.out.println("report: " + report);
countViolations(report, 4, 2, 1, 1, 1, 0);