CalvalusGetCapabilitiesOperation extends WpsOperation { Languages getLanguages() { Languages languages = new Languages(); Languages.Default defaultLanguage = new Languages.Default(); defaultLanguage.setLanguage(PropertiesWrapper.get("wps.default.lang")); languages.setDefault(defaultLanguage); LanguagesType languageType = new LanguagesType(); languageType.getLanguage().add(0, PropertiesWrapper.get("wps.supported.lang")); languages.setSupported(languageType); return languages; } CalvalusGetCapabilitiesOperation(WpsRequestContext context); Capabilities getCapabilities();  }
@Test public void canGetLanguages() throws Exception { Languages languages = getCapabilitiesOperation.getLanguages(); assertThat(languages.getDefault().getLanguage(), equalTo("EN")); assertThat(languages.getSupported().getLanguage().size(), equalTo(1)); assertThat(languages.getSupported().getLanguage().get(0), equalTo("EN")); }