Person person = new Person();
person.setFirstName(null);
person.setLastName("lastName");
person.setAge(20);
WebResponse response = createInjector().getInstance(Web.class)
.clientOf(AcceptanceTest.baseUrl() + "/restvalidatingdao")
.transports(Person.class).over(Json.class).post(person);
assert response.toString().contains("constraintViolationNullFirstName");
}