Object response = responses.get(i);
if (response instanceof Exception)
fail("received exception response: " + ((Exception)response).toString());
assertTrue("expected Person as response type, got " +response.getClass().getName(), response instanceof Person);
}
Person person0 = (Person)responses.get(0);
Person person1 = (Person)responses.get(1);
assertFalse("expected different person names, got " + person0.getName(),
person0.getName().equals(person1.getName()));
}