assertNull(layerGroup);
}
@Test
public void testNotAdvertisedLayersInGroupWithNeverHideGroupPolicy() throws Exception {
AdvertisedCatalog sc = new AdvertisedCatalog(catalog);
sc.setLayerGroupVisibilityPolicy(LayerGroupVisibilityPolicy.HIDE_NEVER);
assertNull(sc.getLayerByName("topp:states"));
assertNull(sc.getLayerByName("topp:roads"));
LayerGroupInfo layerGroup = sc.getLayerGroupByName("topp", "layerGroupWithSomeLockedLayer");
assertNotNull(layerGroup);
assertEquals(0, layerGroup.getLayers().size());
}