public void testAddAccessControlEntryAgain() throws NotExecutableException, RepositoryException {
checkCanModifyAc(path);
AccessControlList list = getList(acMgr, path);
list.addAccessControlEntry(testPrincipal, privs);
AccessControlEntry[] entries = list.getAccessControlEntries();
if (entries.length > 0) {
assertFalse("Adding an existing entry again must not modify the AC-List",
list.addAccessControlEntry(entries[0].getPrincipal(), entries[0].getPrivileges()));
} else {