*/
private Statement wrapExpectedExceptions(final Statement s, TestCandidate c, Object instance) {
Test ann = c.method.getAnnotation(Test.class);
// If there's no expected class, don't wrap. Eh, None is package-private...
final Class<? extends Throwable> expectedClass = ann.expected();
if (expectedClass.getName().equals("org.junit.Test$None")) {
return s;
}
return new Statement() {