    @Test
    public void testRegisterAttendee() {

        // API method under test:
        Attendee johnDoe = sessionVote.registerAttendee(new Attendee("John Doe"));
        assertEquals("Unexpected name returned for registered attendee", "John Doe", johnDoe.getName());

        Attendee janeDoe = sessionVote.registerAttendee(new Attendee("Jane Doe"));
        assertEquals("Unexpected name returned for second registered attendee", "Jane Doe", janeDoe.getName());
        assertNotEquals("Both attendees have the same ID", johnDoe.getId(), janeDoe.getId());

        // Verify that both attendees are registered using a non-public method
        Collection<Attendee> attendees = sessionVote.getAllAttendees();
        assertTrue("The session vote service is missing the first registered attendee", attendees.contains(johnDoe));
        assertTrue("The session vote service is missing the second registered attendee", attendees.contains(janeDoe));

    }