@Test
public void testSessionRatingAverage() {

    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
    sessionVote.rateSession(new SessionRating("session1", attendee1.getId(), 3));
    sessionVote.rateSession(new SessionRating("session1", attendee2.getId(), 8));
    sessionVote.rateSession(new SessionRating("session2", attendee3.getId(), 8));
    sessionVote.rateSession(new SessionRating("session1", attendee4.getId(), 10));
    // API method under test
    double avg = sessionVote.sessionRatingAverage("session1");
    assertEquals("Unexpected result from session1 rating average", 7.0, avg, 0.0);
}