assignmentReceived.getLimitValues(),
duplicateLimitValues,
  public final void testFindDuplicates()  throws    SignetAuthorityException,    ObjectNotFoundException  {    for (int subjectIndex = 0;    subjectIndex < Constants.MAX_SUBJECTS;    subjectIndex++)    {      Subject subject        = signet.getSubject            (Signet.DEFAULT_SUBJECT_TYPE_ID,             fixtures.makeSubjectId(subjectIndex));       PrivilegedSubject pSubject = signet.getPrivilegedSubject(subject);      Set assignmentsReceived        = pSubject.getAssignmentsReceived            (null, signet.getSubsystem(Constants.SUBSYSTEM_ID), null);            Iterator assignmentsReceivedIterator = assignmentsReceived.iterator();      while (assignmentsReceivedIterator.hasNext())      {        Assignment assignmentReceived          = (Assignment)(assignmentsReceivedIterator.next());                // At this point, there should be no duplicate Assignments.        assertEquals(0, assignmentReceived.findDuplicates().size());                // Let's make a duplicate.        Assignment duplicateAssignment          = assignmentReceived              .getGrantor()                .grant                  (assignmentReceived.getGrantee(),                   assignmentReceived.getScope(),                   assignmentReceived.getFunction(),                   assignmentReceived.getLimitValues(),                   assignmentReceived.isGrantable(),                   assignmentReceived.isGrantOnly(),                   new Date(),  // EffectiveDate and expirationDate are not                   new Date()); // considered when finding duplicates.        duplicateAssignment.save();                // At this point, there shoule be exactly one duplicate Assignment.        assertEquals(1, assignmentReceived.findDuplicates().size());      }    }  }