public static <T extends Comparable<T>>boolean assertComparison(T actual,T expected){
  boolean ret=false;
  if ((expected == null) && (actual == null)) {
    ret=true;
  }
 else   if (expected != null) {
    ret=expected.compareTo(actual) == 0;
  }
  return ret;
}

public static < T extends Comparable < T > > boolean assertComparison ( T actual , T expected ) { boolean ret = false ; if ( ( expected == null ) && ( actual == null ) ) { ret = true ; } else if ( expected != null ) { ret = expected . compareTo ( actual ) == 0 ; } return ret ; }
assert the equality of two generic objects using compareto ( ) operator
