Privilege[] write = privilegesFromNames(PrivilegeConstants.JCR_WRITE);
emptyAcl.addAccessControlEntry(testPrincipal, read);
emptyAcl.addAccessControlEntry(getTestPrincipal("p2"), write);
AccessControlEntry invalid = new ACE(testPrincipal, write, false, Collections.<Restriction>emptySet());
try {
emptyAcl.orderBefore(invalid, emptyAcl.getEntries().get(0));
fail("src entry not contained in list -> reorder should fail.");
} catch (AccessControlException e) {
// success