group1 = EveryonePrincipal.getInstance();
group2 = new GroupImpl("group2");
group3 = new GroupImpl("group3");
pbp = new PrivilegeBitsProvider(root);
rp = new RestrictionProviderImpl(NamePathMapper.DEFAULT);
NodeUtil rootNode = new NodeUtil(root.getTree("/"));
NodeUtil system = rootNode.getChild("jcr:system");
NodeUtil perms = system.addChild(REP_PERMISSION_STORE, NT_REP_PERMISSION_STORE);
perms.addChild(userPrincipal.getName(), NT_REP_PERMISSION_STORE);