return service;
}
@Test
public void testCanAddLayer() throws Throwable {
BasicWMSMetricsFactory2 fac=new BasicWMSMetricsFactory2();
CompositeRenderContextImpl comp = createCompositeRenderer();
AbstractRenderMetrics metrics = fac.createMetrics(comp);
assertTrue(metrics.canAddLayer(map.getLayersInternal().get(1)));
org.locationtech.udig.project.internal.Layer layer = map.getLayerFactory().createLayer(members2.get(0));
assertFalse(metrics.canAddLayer(layer));
}