assertThat(this.cityService.findCities(criteria, this.pageable), is(this.cities));
}
@Test
public void shouldFindCitiesByNameRestrictedToCountryWithExtraCommas() throws Exception {
CitySearchCriteria criteria = new CitySearchCriteria("ci,ty,country");
given(this.cityRepository.findByNameLikeAndCountryLikeAllIgnoringCase("%ci,ty%", "%country%", this.pageable))
.willReturn(this.cities);
assertThat(this.cityService.findCities(criteria, this.pageable), is(this.cities));
}