### Question:
WMSCapabilitiesAdapter extends XMLAdapter implements OWSCapabilitiesAdapter { public List<String> getNamedLayers() { return namedLayers; }  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 );  }### Answer:
@Test public void testWMSCapabilitiesNamesLayers() throws XMLStreamException { WMSCapabilitiesAdapter capabilities = createCapabilities(); List<String> namedLayers = capabilities.getNamedLayers(); assertTrue( namedLayers.contains( "citelayers" ) ); assertTrue( namedLayers.contains( "cite:Bridges" ) ); }