assertTrue(context.getFlashScope().contains("flowExecutionException"));
assertTrue(context.getFlashScope().contains("rootCauseException"));
assertTrue(context.getFlashScope().get("rootCauseException") instanceof TestException);
}
};
FlowExecutionImplFactory factory = new FlowExecutionImplFactory();
factory.setExecutionListenerLoader(new StaticFlowExecutionListenerLoader(listener));
FlowExecution execution = factory.createFlowExecution(flow);
execution.start(null, new MockExternalContext());
assertTrue("Should have ended", !execution.isActive());
}