public void testExceptionSubclass() {
ExceptionTestCase test= new ThrowExceptionTestCase("test", IndexOutOfBoundsException.class);
TestResult result= test.run();
assertEquals(1, result.runCount());
assertTrue(result.wasSuccessful());
}
public void testExceptionTest() {
ExceptionTestCase test= new ThrowExceptionTestCase("test", IndexOutOfBoundsException.class);
TestResult result= test.run();
assertEquals(1, result.runCount());