public abstract class AbstractAccessControlTest extends AbstractSecurityTest {
private RestrictionProvider restrictionProvider;
protected void registerNamespace(String prefix, String uri) throws Exception {
NamespaceRegistry nsRegistry = new ReadWriteNamespaceRegistry() {
@Override
protected Root getWriteRoot() {
return root;
}
@Override
protected Tree getReadTree() {
return root.getTree("/");
}
};
nsRegistry.registerNamespace(prefix, uri);
}