@Test
public void testMostSimilarToMultipleDontExcludeIfNotSimilarToAll() throws Exception {

  ItemBasedRecommender recommender = buildRecommender2();
  List<RecommendedItem> similar = recommender.mostSimilarItems(new long[] {1, 2, 4}, 10, false);
  assertNotNull(similar);
  assertEquals(2, similar.size());
  RecommendedItem first = similar.get(0);
  RecommendedItem second = similar.get(1);
  assertEquals(0, first.getItemID());
  assertEquals(0.933333333f, first.getValue(), EPSILON);
  assertEquals(3, second.getItemID());
  assertEquals(-0.2f, second.getValue(), EPSILON);
}