@Test
public void testGetAttendee() {

    Attendee jonathanDoe = sessionVote.registerAttendee(new Attendee("Jonathan Doe"));
    String id = jonathanDoe.getId();
    // API method under test:
    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());
    // Now verify that there is only one attendee in the system, and that it is the correct one:
    Collection<Attendee> attendees = sessionVote.getAllAttendees();
    assertEquals("An unexpected number of attendees have been registered", 1, attendees.size());
    assertTrue("The session vote service is missing the updated attendee", attendees.contains(jonathanDoe));
}