public void before() throws Exception {
super.before();
registerNamespace(TestNameMapper.TEST_PREFIX, TestNameMapper.TEST_URI);
nameMapper = new TestNameMapper(Namespaces.getNamespaceMap(root.getTree("/")));
npMapper = new NamePathMapperImpl(nameMapper);
acMgr = getAccessControlManager(npMapper);
privilegeManager = getSecurityProvider().getPrivilegeConfiguration().getPrivilegeManager(root, npMapper);
valueFactory = new ValueFactoryImpl(root.getBlobFactory(), npMapper);