code: public static void assertEqualBeans(Object expected, Object actual) throws ComparisonFailure {
          // Do *NOT* rely on expected/actual java.lang.Object.equals(Object);
          // and obviously neither e.g. java.util.Objects.equals(Object, Object) based on. it
          final String expectedAsText = generator.getExpression(expected);
          assertEqualByText(expectedAsText, actual);
      }
docs: Asserts that two JavaBean or immutable Value Objects are equal. If they are not, throws an
  {@link ComparisonFailure} with highly readable textual representations of the objects' properties.
  
  @param expected
  expected value
  @param actual
  the value to check against <code>expected</code>