@BeforeClass
public static void setup() throws JitcaException{
libraryMock = EasyMock.createMock(UserLibraryImpl.class);
TrackCollectionImpl trackCollectionMock = EasyMock.createMock(TrackCollectionImpl.class);
TrackFactory trackFactoryMock = EasyMock.createMock(TrackFactory.class);
EasyMock.expect(trackFactoryMock.isLazy()).andReturn(false).anyTimes();
EasyMock.expect(libraryMock.isLazy()).andReturn(false).anyTimes();
EasyMock.expect(trackFactoryMock.getTracksOfAlbum("Test-Album-Name")).andReturn(trackCollectionMock);
EasyMock.expect(libraryMock.getTracksOfAlbum("Test-Album-Name")).andReturn(trackCollectionMock);
EasyMock.expect(trackFactoryMock.getTracksOfArtist("Test-Artist-Name")).andReturn(trackCollectionMock);
EasyMock.expect(trackFactoryMock.getTracksOfComposer("Test-Artist-Name")).andReturn(trackCollectionMock);
EasyMock.expect(trackFactoryMock.getTracksOfArtist("Test-Composer-Name")).andReturn(trackCollectionMock);
EasyMock.expect(trackFactoryMock.getTracksOfComposer("Test-Composer-Name")).andReturn(trackCollectionMock);
EasyMock.expect(libraryMock.getTrackFactory()).andReturn(trackFactoryMock).anyTimes();
EasyMock.expect(trackCollectionMock.iterator()).andReturn(new LinkedList<Track>().iterator()).anyTimes();
EasyMock.replay(libraryMock);
EasyMock.replay(trackFactoryMock);
EasyMock.replay(trackCollectionMock);