@Test
public void testGetMovieRecommendations() throws Exception {
Movie movie = movieRepository.save(new Movie("1", "Test-Movie"));
Movie movie2 = movieRepository.save(new Movie("2", "Test-Movie2"));
User user = userRepository.save(new User("me", "me", "me"));
user.rate(template,movie,3,"me");
User friend = userRepository.save(new User("friend", "friend", "friend"));
friend.rate(template, movie, 5, "friend");
friend.rate(template, movie2, 3, "friend2");
assertEquals(2,movieRepository.count());
final List<MovieRecommendation> recommendations = movieRepository.getRecommendations(user);
assertEquals("one recommendation", 1, recommendations.size());
assertEquals("one recommendation", movie2, recommendations.get(0).getMovie());
assertEquals("one recommendation", 3, recommendations.get(0).getRating());