}
}
public void testAddMultipleHold() throws RepositoryException, NotExecutableException {
SessionImpl s = (SessionImpl) helper.getSuperuserSession();
RetentionRegistry re = s.getRetentionRegistry();
try {
retentionMgr.addHold(childN2.getPath(), getHoldName(), false);
superuser.save();
// hold is not deep -> only applies to childN2
assertTrue(re.hasEffectiveHold(s.getQPath(childN2.getPath()), false));
assertFalse(re.hasEffectiveHold(s.getQPath(childN2.getPath() + "/child"), false));
retentionMgr.addHold(childN2.getPath(), getHoldName(), true);
superuser.save();
// now deep hold must be taken into account
assertTrue(re.hasEffectiveHold(s.getQPath(childN2.getPath()), false));
assertTrue(re.hasEffectiveHold(s.getQPath(childN2.getPath() + "/child"), false));
} finally {
s.logout();
Hold[] hdls = retentionMgr.getHolds(childN2.getPath());