catalog.add(ns);
LayerInfo layer1 = createLayer(ws, "cs1", "cov1", "ncov1", "test coverage 1", "testlayer1");
LayerInfo layer2 = createLayer(ws, "cs2", "cov2", "ncov2", "test coverage 2", "testlayer2");
MapInfo map1 = catalog.getFactory().createMap();
map1.setName("map_testLayer");
map1.getLayers().add(layer1);
map1.getLayers().add(layer2);
catalog.add(map1);
endTransaction();
startNewTransaction();
MapInfo map2 = catalog.getMap(map1.getId());
assertNotNull(map2);
map2 = ModificationProxy.unwrap(map2);
// assertTrue( map1 != map2 );
assertEquals(2, map2.getLayers().size());
}