title: Testing for multiple exceptions with JUnit 4 annotations
body: <p>Is it possible to test for multiple exceptions in a single JUnit unit test?  I know for a single exception one can use, for example</p>
  
  <pre><code>    @Test(expected=IllegalStateException.class)
  </code></pre>
  
  <p>Now, if I want to test for another exception (say, NullPointerException), can this be done in the same annotation, a different annotation or do I need to write another unit test completely?</p>