TrackFactory trackFactoryMock = EasyMock.createMock(TrackFactory.class);
IITTrack itThrillerMock = EasyMock.createMock(IITTrack.class);
IITTrack itBeatItMock = EasyMock.createMock(IITTrack.class);
IITTrack itBillyJeanMock = EasyMock.createMock(IITTrack.class);
IITTrackCollection itTrackCollectionMock = EasyMock.createMock(IITTrackCollection.class);
TrackImpl thrillerMock = EasyMock.createMock(TrackImpl.class);
TrackImpl beatItMock = EasyMock.createMock(TrackImpl.class);
TrackImpl billyJeanMock = EasyMock.createMock(TrackImpl.class);
EasyMock.expect(libraryMock.isLazy()).andReturn(false).anyTimes();
EasyMock.expect(libraryMock.getTrackFactory()).andReturn(trackFactoryMock);
EasyMock.expect(trackFactoryMock.getTrack(itThrillerMock)).andReturn(thrillerMock);