addACL(null, true, new String[]{"jcr:all"}, "testuser");
assertPermission(null, true, new String[]{"jcr:all"}, "testuser", null);
addACL(null, true, new String[]{"jcr:all"}, "testuser1");
assertPermission(null, true, new String[]{"jcr:all"}, "testuser1", null);
JcrPackage pack = packMgr.upload(getStream("testpackages/repo_policy.zip"), false);
assertNotNull(pack);
ImportOptions opts = getDefaultOptions();
opts.setAccessControlHandling(AccessControlHandling.MERGE_PRESERVE);
pack.install(opts);
// test if nodes and ACLs of first package exist
assertPermission(null, false, new String[]{"jcr:all"}, "everyone", null);
assertPermission(null, true, new String[]{"jcr:all"}, "testuser", null);
assertPermission(null, true, new String[]{"jcr:all"}, "testuser1", null);