Suppress false positives by adding the suppression annotation @SuppressWarnings("ExtendingJUnitAssert") to the enclosing element.
@SuppressWarnings("ExtendingJUnitAssert")