public static void assertEquals(Formatter message,Object expected,Object actual){
  if (!expected.equals(actual)) {
    throw new AssertionException(message);
  }
}

public static void assertEquals ( Formatter message , Object expected , Object actual ) { if ( ! expected . equals ( actual ) ) { throw new AssertionException ( message ) ; } }
asserts that two objects are equal to one another . does nothing if they are ; throws an assertionexception if they ' re not .
