// Invalid: Should have 1 each of field, property, class, and parameter violations,
// and no return value violations.
request = new ClientRequest("http://localhost:8080/Validation-test/rest/all/a/z");
foo = new Foo("p");
request.body("application/foo", foo);
request.accept(MediaType.APPLICATION_XML);
response = request.post(Foo.class);
Assert.assertEquals(400, response.getStatus());
Object header = response.getHeaders().getFirst(Validation.VALIDATION_HEADER);
Assert.assertTrue(header instanceof String);
Assert.assertTrue(Boolean.valueOf(String.class.cast(header)));