public void verify(){
  super.verify();
  assertEquals("Sets should be equal",confirmed,collection);
  assertEquals("Sets should have equal hashCodes",confirmed.hashCode(),collection.hashCode());
  Collection set=makeConfirmedCollection();
  Iterator iterator=collection.iterator();
  while (iterator.hasNext()) {
    assertTrue("Set.iterator should only return unique elements",set.add(iterator.next()));
  }
}

public void verify ( ) { super . verify ( ) ; assertEquals ( "Sets should be equal" , confirmed , collection ) ; assertEquals ( "Sets should have equal hashCodes" , confirmed . hashCode ( ) , collection . hashCode ( ) ) ; Collection set = makeConfirmedCollection ( ) ; Iterator iterator = collection . iterator ( ) ; while ( iterator . hasNext ( ) ) { assertTrue ( "Set.iterator should only return unique elements" , set . add ( iterator . next ( ) ) ) ; } }
provides additional verifications for sets .
