Hold hold = retentionMgr.addHold(testNodePath, getHoldName(), false);
assertFalse("The hold added must not have been present before.", containsHold(holdsBefore, hold));
}
public void testAddHoldIsTransient() throws RepositoryException, NotExecutableException {
Hold hold = retentionMgr.addHold(testNodePath, getHoldName(), false);
Hold[] holds = retentionMgr.getHolds(testNodePath);
// revert the changes made
superuser.refresh(false);
Hold[] holds2 = retentionMgr.getHolds(testNodePath);