super(clazz);
}
@Override
public void run(RunNotifier notifier) {
AdvisedSupport config = new AdvisedSupport();
config.setTarget(notifier);
config.addAdvice(new org.aopalliance.intercept.MethodInterceptor() {
public Object invoke(MethodInvocation invocation) throws Throwable {
if ("fireTestFailure".equals(invocation.getMethod().getName())) {
Failure failure = (Failure) invocation.getArguments()[0];
if (failure.getException() instanceof NotSwallowedException) {
// We expect this