you should use ``@expectedException`` instead