di.setDeploymentName("validate");
di.setContextPath("/validate");
server.deploy(di);
Client client = ClientBuilder.newClient();
Builder builder = client.target(TestPortProvider.generateURL("/validate/all/aa/bbb/cccc")).request();
builder.accept(MediaType.APPLICATION_XML);
Response response = builder.get();
Object header = response.getHeaders().getFirst(Validation.VALIDATION_HEADER);
Assert.assertTrue(header instanceof String);
Assert.assertTrue(Boolean.valueOf(String.class.cast(header)));
ViolationReport report = response.readEntity(ViolationReport.class);