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

public void testHashCodeEqual ( ) { String a = "92948782094488478231212478987482988429808779810457634781384756794987" ; int aScale = - 24 ; String b = "92948782094488478231212478987482988429808779810457634781384756794987" ; int bScale = - 24 ; BigDecimal aNumber = new BigDecimal ( new BigInteger ( a ) , aScale ) ; BigDecimal bNumber = new BigDecimal ( new BigInteger ( b ) , bScale ) ; assertEquals ( "incorrect value" , aNumber . hashCode ( ) , bNumber . hashCode ( ) ) ; }
hashcode ( ) for equal bigdecimals
