If JUnit 4 (or greater) is in the classpath, failures of
isEqualTo(String) in StringAssertisEqualTo(Object) in ObjectAssert (only if both the expected and the actual values are Strings)
ComparisonFailure.
This feature can be useful when using tools that have support for this exception. For example, Eclipse provides a nice GUI that shows the differences between the expected and actual values:
