@Test
public void testBestRating() throws Exception {

  Recommender recommender = buildRecommender();
  List<RecommendedItem> recommended = recommender.recommend(1, 1);
  assertNotNull(recommended);
  assertEquals(1, recommended.size());
  RecommendedItem firstRecommended = recommended.get(0);
  // item one should be recommended because it has a greater rating/score
  assertEquals(2, firstRecommended.getItemID());
  assertEquals(0.1f, firstRecommended.getValue(), EPSILON);
}