*/
@Test
public void testACMerge() throws RepositoryException, IOException, PackageException {
assertNodeMissing("/testroot");
JcrPackage pack = packMgr.upload(getStream("testpackages/mode_ac_test_a.zip"), false);
assertNotNull(pack);
pack.install(getDefaultOptions());
// test if nodes and ACLs of first package exist
assertNodeExists("/testroot/node_a");
assertPermission("/testroot/secured", false, new String[]{"jcr:all"}, "everyone", null);
pack = packMgr.upload(getStream("testpackages/mode_ac_test_b_merge.zip"), false);
assertNotNull(pack);
pack.install(getDefaultOptions());
// test if nodes and ACLs of 2nd package exist
assertNodeExists("/testroot/node_a");
assertNodeExists("/testroot/node_b");
assertPermission("/testroot/secured", false, new String[]{"jcr:all"}, "everyone", null);