@Test
public void testAllSessionVotes() {

    Attendee attendee1 = sessionVote.registerAttendee(new Attendee("Jon Don"));
    Attendee attendee2 = sessionVote.registerAttendee(new Attendee("Do Doo"));
    Attendee attendee3 = sessionVote.registerAttendee(new Attendee("Jo Do"));
    Attendee attendee4 = sessionVote.registerAttendee(new Attendee("Bo Jo"));
    // submit 4 votes - 3 for session1, and 1 for session2
    SessionRating sr1 = sessionVote.rateSession(new SessionRating("session1", attendee1.getId(), 3));
    SessionRating sr2 = sessionVote.rateSession(new SessionRating("session1", attendee2.getId(), 4));
    @SuppressWarnings("unused")
ssionRating sr3 = sessionVote.rateSession(new SessionRating("session2", attendee3.getId(), 8));
    SessionRating sr4 = sessionVote.rateSession(new SessionRating("session1", attendee4.getId(), 9));
    // API method under test
    Collection<SessionRating> session1Ratings = sessionVote.allSessionVotes("session1");
    assertEquals("Unexpected number of ratings for session1", 3, session1Ratings.size());
    assertTrue("Returned ratings does not include all submitted ratings for session1", session1Ratings.contains(sr1) &&
                                                                                       session1Ratings.contains(sr2) &&
                                                                                       session1Ratings.contains(sr4));
}