assertNull("RetentionManager.getRetentionPolicy called on child must not return the policy set before.",
retentionMgr.getRetentionPolicy(childPath));
}
public void testRetentionPolicyGetName() throws RepositoryException, NotExecutableException {
RetentionPolicy p = getApplicableRetentionPolicy();
retentionMgr.setRetentionPolicy(testNodePath, p);
RetentionPolicy policy = retentionMgr.getRetentionPolicy(testNodePath);
assertEquals("RetentionPolicy.getName() must match the name of the policy set before.", p.getName(), policy.getName());
}