Statement containerTestRunnerStatement = new ContainerTestRunnerStatement(method, description);
// Handle expected exception. We need to handle this explicitly as it is implemented
// using a statement that we will discard here (as we don't use base)
Test t = method.getAnnotation(Test.class);
if (t != null && t.expected() != None.class) {
testStatement = new ExpectException(containerTestRunnerStatement, t.expected());
} else {
testStatement = containerTestRunnerStatement;
}
} else {