code: public static void assertEquals(String message, Object expected, Object actual) {
          if (expected == null && actual != null || expected != null && !expected.equals(actual)) {
              fail(message);
          }
      }
docs: Asserts that two objects are equal, i.e. {@code expected.equals(actual) == true}, and fails otherwise.
  
  @param message  The message of the thrown {@link java.lang.AssertionError}.
  @param expected The expected object.
  @param actual   The actual object.