EasyMock.expect(candidateItemsStrategy.getCandidateItems(1L, preferencesFromUser, dataModel, false))
.andReturn(new FastIDSet(new long[] { 3L, 4L }));
EasyMock.expect(itemSimilarity.itemSimilarities(3L, preferencesFromUser.getIDs()))
.andReturn(new double[] { 0.5, 0.3 });
EasyMock.expect(itemSimilarity.itemSimilarities(4L, preferencesFromUser.getIDs()))
.andReturn(new double[] { 0.4, 0.1 });
EasyMock.replay(dataModel, itemSimilarity, candidateItemsStrategy, mostSimilarItemsCandidateItemsStrategy);
Recommender recommender = new GenericItemBasedRecommender(dataModel, itemSimilarity,