Some test helpers such as EqualsTester
require a terminating method call to be
of any use.
@Test
public void string() {
new EqualsTester()
.addEqualityGroup("hello", new String("hello"))
.addEqualityGroup("world", new String("world"))
.addEqualityGroup(2, Integer.valueOf(2));
// Oops: forgot to call `testEquals()`
}
Suppress false positives by adding the suppression annotation @SuppressWarnings("MissingTestCall")
to the enclosing element.