public void testHashCode(){
  int version=1;
  int rounds=5;
  int wordSize=16;
  byte[] iv={1,2,3,4,5,6};
  RC5ParameterSpec ps1=new RC5ParameterSpec(version,rounds,wordSize,iv);
  RC5ParameterSpec ps2=new RC5ParameterSpec(version,rounds,wordSize,iv);
  assertTrue("Equal objects should have the same hash codes.",ps1.hashCode() == ps2.hashCode());
}

public void testHashCode ( ) { int version = 1 ; int rounds = 5 ; int wordSize = 16 ; byte [ ] iv = { 1 , 2 , 3 , 4 , 5 , 6 } ; RC5ParameterSpec ps1 = new RC5ParameterSpec ( version , rounds , wordSize , iv ) ; RC5ParameterSpec ps2 = new RC5ParameterSpec ( version , rounds , wordSize , iv ) ; assertTrue ( "Equal objects should have the same hash codes." , ps1 . hashCode ( ) == ps2 . hashCode ( ) ) ; }
hashcode ( ) method testing . tests that for equal objects hash codes are equal .
