assertEquals("Number of persons should be " + expectedCount + ".", expectedCount, persons.size());
}
@Test
public void testUpdate() {
PersonResponse response = service.findById(FIRST_ID);
assertNotNull("Person response is null.", response);
Person person = response.getResults();
testPersonOne(person);
String lastName = "Jones";
person.setLastName(lastName);
service.update(person);
response = service.findById(FIRST_ID);
assertNotNull("Person response is null.", response);
person = response.getResults();
testPersonOne(person, lastName);
}