EasyMock.expect(trackMock2.getGenre()).andReturn(genreMockA).anyTimes();
EasyMock.expect(trackMock3.getGenre()).andReturn(genreMockB).anyTimes();
EasyMock.replay(playlistMock, tracksMock, trackMock1, trackMock2, trackMock3, genreMockA, genreMockB);
GenreCollection actualGenres = PlaylistUtilities.getAllGenres(playlistMock);
assertTrue(actualGenres.contains(genreMockA));
assertTrue(actualGenres.contains(genreMockB));
assertEquals(2, actualGenres.size());
EasyMock.verify(playlistMock, tracksMock, trackMock1, trackMock2, trackMock3, genreMockA, genreMockB);
}