Please use `@expectedException` / `@expectedExceptionMessage` annotations instead.