static public void assertEquals(String message,Object expected,Object actual){
  if (expected == null && actual == null)   return;
  if (expected != null && expected.equals(actual))   return;
  failNotEquals(message,expected,actual);
}

static public void assertEquals ( String message , Object expected , Object actual ) { if ( expected == null && actual == null ) return ; if ( expected != null && expected . equals ( actual ) ) return ; failNotEquals ( message , expected , actual ) ; }
asserts that two objects are equal . if they are not an assertionfailederror is thrown with the given message .
