### Question:
HotelServiceImpl implements HotelService { public Hotel getHotel(City city, String name) { Assert.notNull(city, "City must not be null"); Assert.hasLength(name, "Name must not be empty"); return this.hotelRepository.findByCityAndName(city, name); }  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 shouldGetHotel() throws Exception { given(hotelRepository.findByCityAndName(city, "name")).willReturn(hotel); assertThat(hotelService.getHotel(city, "name"), is(hotel)); }