public void testFile() throws Exception {
UserSimilarity userSimilarity = new PearsonCorrelationSimilarity(model);
UserNeighborhood neighborhood = new NearestNUserNeighborhood(2, userSimilarity, model);
Recommender recommender = new GenericUserBasedRecommender(model, neighborhood, userSimilarity);
assertEquals(2, recommender.recommend("A123", 3).size());
assertEquals(2, recommender.recommend("B234", 3).size());
assertEquals(1, recommender.recommend("C345", 3).size());
// Make sure this doesn't throw an exception
model.refresh(null);