@Test(suiteName = AcceptanceTest.SUITE)
public class RestfulWebServiceValidatingDaoAcceptanceTest {
public void shouldValidateGet() {
Person person = new Person();
person.setFirstName("firstName");
person.setLastName("lastName");
person.setAge(20);
WebResponse response = createInjector().getInstance(Web.class)
.clientOf(AcceptanceTest.baseUrl() + "/restvalidatingdao")
.transports(Person.class).over(Json.class).get();
assert response.toString().contains(person.getLastName());
}