+\r
+ @Test\r
+ public void testGetWebServiceUrlCountry() throws MalformedURLException, IOException {\r
+ Set<Distribution> distributions = new HashSet<Distribution>();\r
+ Country germany = termService.findByIdInVocabulary("DEU", Country.uuidCountryVocabulary, Country.class);\r
+// germany = (Country)termService.find(665);\r
+// germany = (Country)termService.find(UUID.fromString("cbe7ce69-2952-4309-85dd-0d7d4a4830a1"));\r
+\r
+// germany = Country.GERMANY();\r
+\r
+ distributions.add(Distribution.NewInstance(germany, PresenceTerm.PRESENT()));\r
+ distributions.add(Distribution.NewInstance(termService.findByIdInVocabulary("DE", Country.uuidCountryVocabulary, Country.class), PresenceTerm.INTRODUCED()));\r
+ Map<PresenceAbsenceTermBase<?>, Color> presenceAbsenceColorMap = new HashMap<PresenceAbsenceTermBase<?>, Color>();\r
+ presenceAbsenceColorMap.put(PresenceTerm.PRESENT(), Color.BLUE);\r
+ presenceAbsenceColorMap.put(PresenceTerm.INTRODUCED(), Color.BLACK);\r
+ List<Language> languages = new ArrayList<Language>();\r
+\r
+ boolean subAreaPreference = false;\r
+ boolean statusOrderPreference = false;\r
+ String result = EditGeoServiceUtilities.getDistributionServiceRequestParameterString(distributions,\r
+ subAreaPreference, statusOrderPreference, null, mapping,\r
+ presenceAbsenceColorMap, null, languages );\r
+ logger.warn(result);\r
+ Assert.assertTrue("WebServiceUrl must contain country part for Germany", result.matches(".*ad=country_earth(%3A|:)gmi_cntry:a:DEU.*"));\r
+\r
+ }\r
+\r