### Question:
CityServiceImpl implements CityService { public Page<HotelSummary> getHotels(City city, Pageable pageable) { Assert.notNull(city, "City must not be null"); return this.hotelSummaryRepository.findByCity(city, pageable); }  Page<City> findCities(CitySearchCriteria criteria, Pageable pageable); City getCity(String name, String country); Page<HotelSummary> getHotels(City city, Pageable pageable); @Autowired void setCityRepository(CityRepository ciryRepository); @Autowired void setHotelSummaryRepository(HotelSummaryRepository hotelSummaryRepository);  }### Answer:
@Test public void shouldGetHotels() throws Exception { given(this.hotelSummaryRepository.findByCity(this.city, this.pageable)).willReturn(this.hotels); assertThat(this.cityService.getHotels(this.city, this.pageable), is(this.hotels)); }