}
return successfull;
}
private Source createSourceMock(){
Source sourceMock = EasyMock.createMock(Source.class);
EasyMock.expect(sourceMock.isLazy()).andReturn(true).anyTimes();
EasyMock.expect(sourceMock.getTrackFactory()).andReturn(null).anyTimes();
Artist michael = EasyMock.createMock(Artist.class);
Artist paul = EasyMock.createMock(Artist.class);
Artist memberA = EasyMock.createMock(Artist.class);
Artist memberB = EasyMock.createMock(Artist.class);
Artist memberC = EasyMock.createMock(Artist.class);
Artist memberD = EasyMock.createMock(Artist.class);
EasyMock.expect(michael.getName()).andReturn("Michael Jackson").anyTimes();
EasyMock.expect(paul.getName()).andReturn("Paul McCartney").anyTimes();
EasyMock.expect(sourceMock.getArtist("Michael Jackson")).andReturn(michael).anyTimes();
EasyMock.expect(sourceMock.getArtist("Paul McCartney")).andReturn(paul).anyTimes();
EasyMock.expect(memberA.getName()).andReturn("MemberA").anyTimes();
EasyMock.expect(sourceMock.getArtist("MemberA")).andReturn(memberA).anyTimes();
EasyMock.expect(memberB.getName()).andReturn("MemberB").anyTimes();
EasyMock.expect(sourceMock.getArtist("MemberB")).andReturn(memberB).anyTimes();
EasyMock.expect(memberC.getName()).andReturn("MemberC").anyTimes();
EasyMock.expect(sourceMock.getArtist("MemberC")).andReturn(memberC).anyTimes();
EasyMock.expect(memberD.getName()).andReturn("MemberD").anyTimes();
EasyMock.expect(sourceMock.getArtist("MemberD")).andReturn(memberD).anyTimes();
EasyMock.replay(michael);
EasyMock.replay(paul);
EasyMock.replay(memberA);
EasyMock.replay(memberB);