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