public void testRescorer() throws Exception {
List<User> users = new ArrayList<User>(3);
users.add(getUser("test1", 0.1, 0.2));
users.add(getUser("test2", 0.2, 0.3, 0.3, 0.6));
users.add(getUser("test3", 0.4, 0.4, 0.5, 0.9));
DataModel dataModel = new GenericDataModel(users);
UserSimilarity similarity = new PearsonCorrelationSimilarity(dataModel);
UserNeighborhood neighborhood = new NearestNUserNeighborhood(1, similarity, dataModel);
Recommender recommender = new GenericUserBasedRecommender(dataModel, neighborhood, similarity);
List<RecommendedItem> originalRecommended = recommender.recommend("test1", 2);
List<RecommendedItem> rescoredRecommended =