@Test
public void testWMSCapabilitiesLayerMetadataUrl()
                        throws XMLStreamException {

    WMSCapabilitiesAdapter capabilities = createCapabilities();
    LayerMetadata rootLayer = capabilities.getLayerTree().value;
    List<MetadataUrl> metadataUrls = rootLayer.getMetadataUrls();
    assertEquals( 1, metadataUrls.size() );
    MetadataUrl metadataUrl = metadataUrls.get( 0 );
    assertEquals( "http://www.deegree.org", metadataUrl.getOnlineResource().toExternalForm() );
    assertEquals( "TC211", metadataUrl.getType() );
    assertEquals( "text/html", metadataUrl.getFormat() );
}