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