@Test
public void testDeleteAttendee() {

    Attendee jonathanDoe = sessionVote.registerAttendee(new Attendee("Jonathan Doe"));
    String id = jonathanDoe.getId();
    Attendee attendee = sessionVote.getAttendee(id);
    assertEquals("Attendee's name was not retrieved as expected", "Jonathan Doe", attendee.getName());
    assertEquals("Attendee's ID was not retrieved as expected", id, attendee.getId());
    // API method under test:
    sessionVote.deleteAttendee(id);
    try {
        sessionVote.getAttendee(id);
        fail("Attendee was not deleted as expected");
    } catch (NotFoundException e) {
        //expected
    }
    // Now verify that there are no attendees in the system
    Collection<Attendee> attendees = sessionVote.getAllAttendees();
    assertEquals("An unexpected number of attendees have been registered", 0, attendees.size());
}