similarity.refresh(null);
/* we should now see the changes in the data */
assertEquals(0.9, similarity.itemSimilarity(1L, 7L), EPSILON);
assertEquals(0.9, similarity.itemSimilarity(7L, 1L), EPSILON);
assertEquals(0.125, similarity.itemSimilarity(1L, 5L), EPSILON);
assertEquals(0.125, similarity.itemSimilarity(5L, 1L), EPSILON);
assertFalse(Double.isNaN(similarity.itemSimilarity(7L, 8L)));
assertEquals(0.112, similarity.itemSimilarity(7L, 8L), EPSILON);
assertEquals(0.112, similarity.itemSimilarity(8L, 7L), EPSILON);