title: How do you customize exception handling behavior in JUnit 3?
body: <p>I want to implement exception checking (like in JUnit 4) using JUnit 3. For example, I would like to be able to write tests like this:</p>
  
  <pre><code>public void testMyExceptionThrown() throws Exception {
      shouldThrow(MyException.class);
  
      doSomethingThatMightThrowMyException();
  }
  </code></pre>
  
  <p>This should succeed if and only if a MyException is thrown. 
  There is the ExceptionTestCase class in JUnit, but but I want something that each test* method can decide to use or not use. What is the best way to achieve this?</p>