code: public static void assertEquals(Formatter message, Object expected, Object actual) {
          if (!expected.equals(actual)) {
              throw new AssertionException(message);
          }
      }
docs: Asserts that two Objects are equal to one another. Does nothing if they
  are; throws an AssertionException if they're not.
  
  @param message Message to be included in the {@link AssertionException}.
  @param expected Expected value.
  @param actual Actual value.
  @throws AssertionException If {@code expected} and {@code actual} are not
  equal.