public void testHashCodeUnequal(){
  String a="8478231212478987482988429808779810457634781384756794987";
  int aScale=41;
  String b="92948782094488478231212478987482988429808779810457634781384756794987";
  int bScale=-24;
  BigDecimal aNumber=new BigDecimal(new BigInteger(a),aScale);
  BigDecimal bNumber=new BigDecimal(new BigInteger(b),bScale);
  assertTrue("incorrect value",aNumber.hashCode() != bNumber.hashCode());
}

public void testHashCodeUnequal ( ) { String a = "8478231212478987482988429808779810457634781384756794987" ; int aScale = 41 ; String b = "92948782094488478231212478987482988429808779810457634781384756794987" ; int bScale = - 24 ; BigDecimal aNumber = new BigDecimal ( new BigInteger ( a ) , aScale ) ; BigDecimal bNumber = new BigDecimal ( new BigInteger ( b ) , bScale ) ; assertTrue ( "incorrect value" , aNumber . hashCode ( ) != bNumber . hashCode ( ) ) ; }
hashcode ( ) for unequal bigdecimals
