private void doOrderTest(AccessControlHandling ac) throws Exception {
JcrPackage pack = packMgr.upload(getStream("testpackages/mode_ac_test_e.zip"), true);
assertNotNull(pack);
ImportOptions opts = getDefaultOptions();
opts.setAccessControlHandling(ac);
pack.install(opts);
// test if nodes and ACLs of first package exist
assertNodeExists("/testroot/node_e");
int idx0 = hasPermission("/testroot/secured", false, new String[]{"jcr:all"}, "everyone", Collections.<String, String[]>emptyMap());
int idx1 = hasPermission("/testroot/secured", true, new String[]{"jcr:all"}, "testuser", Collections.<String, String[]>emptyMap());