question: public void testHashCode ( ) { int effectiveKeyBits = 0 ; byte [ ] iv = new byte [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 } ; RC2ParameterSpec ps1 = new RC2ParameterSpec ( effectiveKeyBits , iv ) ; RC2ParameterSpec ps2 = new RC2ParameterSpec ( effectiveKeyBits , iv ) ; assertTrue ( "Equal objects should have the same hash codes." , ps1 . hashCode ( ) == ps2 . hashCode ( ) ) ; }
target:  hashCode() method testing. Tests that for equal objects hash codes are equal.