### Question:
CityServiceImpl implements CityService { public City getCity(String name, String country) { Assert.notNull(name, "Name must not be null"); Assert.notNull(country, "Country must not be null"); return this.cityRepository.findByNameAndCountryAllIgnoringCase(name, country); }  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 shouldGetCity() throws Exception { given(this.cityRepository.findByNameAndCountryAllIgnoringCase("name", "country")).willReturn(this.city); assertThat(this.cityService.getCity("name", "country"), is(this.city)); }