populateCatalog();
}
public void testAccessToLayer() throws Exception {
DataAccessManager def = buildLegacyAccessManager("wideOpen.properties");
ResourceAccessManager defAsResourceManager = new DataAccessManagerAdapter(def);
LocalWorkspaceResourceAccessManager mgr = new LocalWorkspaceResourceAccessManager();
mgr.setDelegate(defAsResourceManager);
SecureCatalogImpl sc = new SecureCatalogImpl(catalog, mgr) {};
assertNotNull(sc.getLayerByName("topp:states"));