public void preferencesFetchedOnlyOnce() throws Exception {
DataModel dataModel = EasyMock.createMock(DataModel.class);
ItemSimilarity itemSimilarity = EasyMock.createMock(ItemSimilarity.class);
CandidateItemsStrategy candidateItemsStrategy = EasyMock.createMock(CandidateItemsStrategy.class);
MostSimilarItemsCandidateItemsStrategy mostSimilarItemsCandidateItemsStrategy =
EasyMock.createMock(MostSimilarItemsCandidateItemsStrategy.class);
PreferenceArray preferencesFromUser = new GenericUserPreferenceArray(
Arrays.asList(new GenericPreference(1L, 1L, 5.0f), new GenericPreference(1L, 2L, 4.0f)));