@Test public void testGetCities() { LOG.debug("<-- start of new test-case"); parse("/xml/rce/model.xml"); List<City> found; found = nodeService.getCities(null, 0, 100); log(found); assertEquals("unexpected number of cities found", 18, found.size()); found = nodeService.getCities(null, 0, 100, nodeRepository.getCountry("DE")); log(found); assertEquals("unexpected number of cities found", 17, found.size()); found = nodeService.getCities(null, 0, 100, nodeRepository.getCountry("I")); log(found); assertEquals("unexpected number of cities found", 1, found.size()); found = nodeService.getCities(null, 0, 100, nodeRepository.getState("NRW")); log(found); assertEquals("unexpected number of cities found", 8, found.size()); }