WMSCapabilitiesAdapter extends XMLAdapter implements OWSCapabilitiesAdapter { public OMElement getExtendedCapabilities( String prefix, String localName, String namespaceUri ) { if ( prefix != null ) nsContext.addNamespace( prefix, namespaceUri ); prefix = prefix != null ? ( prefix + ":" ) : ""; String xpath = getExtendedCapabilitiesRootXPath() + "/" + prefix + localName; return getElement( rootElement, new XPath( xpath, nsContext ) ); }  LinkedList<String> getFormats( WMSRequestType request ); String getAddress( WMSRequestType request, boolean get ); Envelope getBoundingBox( String srs, String layer ); List<String> getNamedLayers(); boolean hasLayer( String name ); LinkedList<String> getCoordinateSystems( String layer ); LayerMetadata getLayer( String name ); Envelope getLatLonBoundingBox( String layer ); Envelope getLatLonBoundingBox( List<String> layers ); Tree<LayerMetadata> getLayerTree(); boolean isOperationSupported( WMSRequestType request ); @Override List<String> parseLanguages(); @Override ServiceProvider parseServiceProvider(); @Override ServiceIdentification parseServiceIdentification(); @Override OperationsMetadata parseOperationsMetadata(); OMElement getExtendedCapabilities( String prefix, String localName, String namespaceUri ); void parseWMSSpecificCapabilities( OperationsMetadata operationsMetadata );  }
@Test public void testWMSCapabilitiesInspireExtended() throws XMLStreamException, UnknownCRSException { WMSCapabilitiesAdapter capabilities = createInspireCapabilities(); OMElement extendedCapabilities = capabilities.getExtendedCapabilities( "inspire_vs", "ExtendedCapabilities", "http: assertEquals( "ExtendedCapabilities", extendedCapabilities.getLocalName() ); }