// get document for id
Document doc = (Document) this.session.getObject(id);
assertNotNull(doc);
// apply acl (not supported by InMemory?)
Acl acl = doc.applyAcl(aces, null, AclPropagation.PROPAGATE);
assertNotNull(acl);
// read & check acls
Acl acl2 = doc.getAcl();
assertNotNull(acl2);