public static boolean assertEquals(final String msg,final Object a,final Object b){
  if (a == b) {
    return true;
  }
  if (a == null || !a.equals(b)) {
    throw new ExamException(msg + ":" + a+ " != "+ b);
  }
  return true;
}

public static boolean assertEquals ( final String msg , final Object a , final Object b ) { if ( a == b ) { return true ; } if ( a == null || ! a . equals ( b ) ) { throw new ExamException ( msg + ":" + a + " != " + b ) ; } return true ; }
check if two objects are equal .
