should use `@expectedException` and `@expectedExceptionMessage` annotations