public void testThrowException() { try { throw new CaptchaException(); } catch (CaptchaException expected) { // expected } catch (UnsupportedClassVersionError error) { fail(error.toString()); } }