@Test
public void testContainerLayerGroupInCapabilities() throws Exception {
Catalog cat = getCatalog();
LayerGroupInfo layerGroup = cat.getLayerGroupByName("base");
layerGroup.setMode(LayerGroupInfo.Mode.CONTAINER);
cat.save(layerGroup);
Document dom = getAsDOM("wms?request=getcapabilities&version=1.3.0");
// check layer group doesn't have a name but eventually a title
assertXpathNotExists("/wms:WMS_Capabilities/wms:Capability/wms:Layer/wms:Layer/wms:Name[text() = 'base']", dom);
assertXpathExists("/wms:WMS_Capabilities/wms:Capability/wms:Layer/wms:Layer/wms:Title[text() = 'title for layer group base default']", dom);