Collection<Person> empty = personService.readPersons(null);
assertTrue(empty == null || empty.isEmpty());
personService.deletePerson("somebody");
try {
personService.deletePerson(null);
fail("Should have thrown the exception.");
}
catch (ServiceException e) {
assertEquals("a person id must be supplied", e.getMessage());
assertEquals("no person id.", e.getAnotherMessage());