@Test
@DirtiesContext
public void testPersonServiceClient() {
assertNotNull("Client is null.", client);
PersonResponse response = client.getPersons(new GetPersonsRequest());
logger.debug("Received response from server.");
assertNotNull("Response is null.", response);
int expectedSize = 2;
assertEquals("Expected person list to be a size of '" + expectedSize + "'.", expectedSize, response.getPerson().size());
Person person = response.getPerson().get(0);
assertNotNull("Person is null.", person);
assertEquals("Expected id of '" + ID + "'.", ID.intValue(), person.getId());
assertEquals("Expected first name of '" + FIRST_NAME + "'.", FIRST_NAME, person.getFirstName());
assertEquals("Expected last name of '" + LAST_NAME + "'.", LAST_NAME, person.getLastName());
Person person2 = response.getPerson().get(1);
assertNotNull("Person is null.", person2);
assertEquals("Expected id of '" + SECOND_ID + "'.", SECOND_ID.intValue(), person2.getId());
assertEquals("Expected first name of '" + SECOND_FIRST_NAME + "'.", SECOND_FIRST_NAME, person2.getFirstName());