for (Test test : getAllUnderlyingTests())
{
if (test instanceof BrokerLifecycleAware)
{
BrokerLifecycleAware failureTest = (BrokerLifecycleAware) test;
failureTest.setFailureMechanism(new CauseFailureUserPrompt());
}
}
// Run the test.
test.run(testResult);