### Question:
HotelServiceImpl implements HotelService { public Review getReview(Hotel hotel, int reviewNumber) { Assert.notNull(hotel, "Hotel must not be null"); return this.reviewRepository.findByHotelAndIndex(hotel, reviewNumber); }  Hotel getHotel(City city, String name); Page<Review> getReviews(Hotel hotel, Pageable pageable); Review getReview(Hotel hotel, int reviewNumber); Review addReview(Hotel hotel, ReviewDetails details); ReviewsSummary getReviewSummary(Hotel hotel); @Autowired void setHotelRepository(HotelRepository hotelRepository); @Autowired void setHotelSummaryRepository(HotelSummaryRepository hotelSummaryRepository); @Autowired void setReviewRepository(ReviewRepository reviewRepository);  }### Answer:
@Test public void shouldGetReview() throws Exception { given(reviewRepository.findByHotelAndIndex(hotel, 1)).willReturn(review); assertThat(hotelService.getReview(hotel, 1), is(review)); }