group3 = new GroupImpl("group3");
pbp = new PrivilegeBitsProvider(root);
rp = new RestrictionProviderImpl();
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);
perms.addChild(group1.getName(), NT_REP_PERMISSION_STORE);
perms.addChild(group2.getName(), NT_REP_PERMISSION_STORE);
perms.addChild(group3.getName(), NT_REP_PERMISSION_STORE);
NodeUtil testNode = rootNode.addChild("nodeName1", NT_UNSTRUCTURED);
testNode.setString("propName1", "strValue");
NodeUtil testNode2 = testNode.addChild("nodeName2", NT_UNSTRUCTURED);
testNode2.setString("propName2", "strValue");
root.commit();
allPaths = ImmutableSet.of("/", UserConstants.DEFAULT_USER_PATH, node1Path, node2Path);
rootAndUsers = ImmutableSet.of("/", UserConstants.DEFAULT_USER_PATH);
nodePaths = ImmutableSet.of(node1Path, node2Path);