assertSame(roadsStore, sc.getDataStoreByName("roads"));
assertSame(arcGridStore, sc.getCoverageStoreByName("arcGrid"));
}
public void testComplex() throws Exception {
ResourceAccessManager manager = buildManager("complex.properties");
SecureCatalogImpl sc = new SecureCatalogImpl(catalog, manager);
// try with anonymous user
SecurityContextHolder.getContext().setAuthentication(anonymous);
// ... roads follows generic ns rule, read only, nobody can write it