}
}
public void testSetRetentionPolicy() throws RepositoryException, NotExecutableException {
SessionImpl s = (SessionImpl) helper.getSuperuserSession();
RetentionRegistry re = s.getRetentionRegistry();
try {
retentionMgr.setRetentionPolicy(childN2.getPath(), getApplicableRetentionPolicy("test2"));
// retention must not be effective yet
assertFalse(re.hasEffectiveRetention(s.getQPath(childN2.getPath()), false));
superuser.save();
assertTrue(re.hasEffectiveRetention(s.getQPath(childN2.getPath()), false));
} finally {
s.logout();
retentionMgr.removeRetentionPolicy(childN2.getPath());