Say I have a class with no equals() method, to which do not have the source. I want to assert equality on two instances of that class.
I can do multiple asserts:
AssertJ assertions can be used to compare the values without #equals method properly overridden, e.g.:
#equals
import static org.assertj.core.api.Assertions.assertThat; // ... assertThat(actual) .usingRecursiveComparison() .isEqualTo(expected);