public void testMaxUnequal2(){
  String a="92948782094488478231212478987482988429808779810457634781384756794987";
  int aScale=41;
  String b="94488478231212478987482988429808779810457634781384756794987";
  int bScale=41;
  String c="92948782094488478231212478987482988429808779810457634781384756794987";
  int cScale=41;
  BigDecimal aNumber=new BigDecimal(new BigInteger(a),aScale);
  BigDecimal bNumber=new BigDecimal(new BigInteger(b),bScale);
  BigDecimal cNumber=new BigDecimal(new BigInteger(c),cScale);
  assertEquals("incorrect value",cNumber,aNumber.max(bNumber));
}

public void testMaxUnequal2 ( ) { String a = "92948782094488478231212478987482988429808779810457634781384756794987" ; int aScale = 41 ; String b = "94488478231212478987482988429808779810457634781384756794987" ; int bScale = 41 ; String c = "92948782094488478231212478987482988429808779810457634781384756794987" ; int cScale = 41 ; BigDecimal aNumber = new BigDecimal ( new BigInteger ( a ) , aScale ) ; BigDecimal bNumber = new BigDecimal ( new BigInteger ( b ) , bScale ) ; BigDecimal cNumber = new BigDecimal ( new BigInteger ( c ) , cScale ) ; assertEquals ( "incorrect value" , cNumber , aNumber . max ( bNumber ) ) ; }
max ( ) for unequal bigdecimals
