def METHOD_NAME(self):
    """Test for violated trivial constraint upper bound."""
    with self.assertRaisesRegex(
        InfeasibleConstraintException,
        "Trivial constraint c violates BODY 1 ≤ UB 0.0.",
    ):
        self._trivial_constraints_ub_conflict()