private void assertDelegations(List oldDelegations, List newDelegations) {
   assertEquals(oldDelegations.size(), newDelegations.size());
   for (Iterator iterator = oldDelegations.iterator(); iterator.hasNext(); ) {
     RuleDelegationBo oldDelegation = (RuleDelegationBo) iterator.next();
     boolean foundDelegation = false;
     for (Iterator iterator2 = newDelegations.iterator(); iterator2.hasNext(); ) {
       RuleDelegationBo newDelegation = (RuleDelegationBo) iterator2.next();
       if (oldDelegation
           .getDelegationRule()
           .getName()
           .equals(newDelegation.getDelegationRule().getName())) {
         assertEquals(oldDelegation.getDelegationType(), newDelegation.getDelegationType());
         assertFalse(
             oldDelegation.getResponsibilityId().equals(newDelegation.getResponsibilityId()));
         assertRuleExport(oldDelegation.getDelegationRule(), newDelegation.getDelegationRule());
         foundDelegation = true;
         break;
       }
     }
     assertTrue("Could not locate delegation.", foundDelegation);
   }
 }