int municipalities = _regionMaster.search(request).getDocuments().size();
assertEquals(283, all - municipalities);
}
public void test_search_name() {
RegionSearchRequest request = new RegionSearchRequest();
request.setName("United Kingdom");
assertEquals(1, _regionMaster.search(request).getDocuments().size());
RegionDocument doc = _regionMaster.search(request).getFirstDocument();
ManageableRegion ukRegion = doc.getRegion();
assertNotNull(ukRegion);
assertEquals("United Kingdom", ukRegion.getName());