CalvalusGetCapabilitiesOperation extends WpsOperation { ServiceIdentification getServiceIdentification() { ServiceIdentification serviceIdentification = new ServiceIdentification(); LanguageStringType title = new LanguageStringType(); title.setValue(PropertiesWrapper.get("wps.service.id")); serviceIdentification.setTitle(title); LanguageStringType abstractText = new LanguageStringType(); abstractText.setValue(PropertiesWrapper.get("wps.service.abstract")); serviceIdentification.setAbstract(abstractText); CodeType serviceType = new CodeType(); serviceType.setValue(PropertiesWrapper.get("wps.service.type")); serviceIdentification.setServiceType(serviceType); serviceIdentification.getServiceTypeVersion().add(0, PropertiesWrapper.get("wps.version")); return serviceIdentification; } CalvalusGetCapabilitiesOperation(WpsRequestContext context); Capabilities getCapabilities();  }
@Test public void canGetServiceIdentification() throws Exception { ServiceIdentification serviceIdentification = getCapabilitiesOperation.getServiceIdentification(); assertThat(serviceIdentification.getTitle().getValue(), equalTo("Calvalus WPS server")); assertThat(serviceIdentification.getAbstract().getValue(), equalTo("Web Processing Service for Calvalus")); assertThat(serviceIdentification.getServiceType().getValue(), equalTo("WPS")); assertThat(serviceIdentification.getServiceTypeVersion().size(), equalTo(1)); assertThat(serviceIdentification.getServiceTypeVersion().get(0), equalTo("1.0.0")); }