@Test
public void testWMSCapabilitiesLayerTree()
                        throws XMLStreamException, UnknownCRSException {

    WMSCapabilitiesAdapter capabilities = createCapabilities();
    Tree<LayerMetadata> layerTree = capabilities.getLayerTree();
    LayerMetadata rootLayer = layerTree.value;
    assertNull( rootLayer.getName() );
    Description description = rootLayer.getDescription();
    assertEquals( "deegree demo WMS", description.getAbstract( null ).getString() );
    List<Tree<LayerMetadata>> children = layerTree.children;
    assertEquals( getNoOfChildrenOfRootLayer(), children.size() );
}