@Test public void testGetDistricts() { LOG.debug("<-- start of new test-case"); parse("/xml/rce/model.xml"); List<District> found; found = nodeService.getDistricts(null, 0, 100); log(found); assertEquals("unexpected number of districts found", 6, found.size()); found = nodeService.getDistricts(null, 0, 100, nodeRepository.getCountry("DE")); log(found); assertEquals("unexpected number of districts found", 5, found.size()); found = nodeService.getDistricts(null, 0, 100, nodeRepository.getCountry("I")); log(found); assertEquals("unexpected number of districts found", 0, found.size()); }