@Test
public void testTopUserUserAlt() throws Exception {

  List<GenericUserSimilarity.UserUserSimilarity> sims = Lists.newArrayList();
  for (int i = 0; i < 99; i++) {
    sims.add(new GenericUserSimilarity.UserUserSimilarity(i, i + 1, 1 - (i / 99.0)));
  }
  List<GenericUserSimilarity.UserUserSimilarity> res = TopItems.getTopUserUserSimilarities(10, sims.iterator());
  int gold = 0;
  for (GenericUserSimilarity.UserUserSimilarity re : res) {
    assertEquals(gold++, re.getUserID1()); //the first id should be equal to 0 to start
  }
}