assertEquals("foo", sessionOutput.get("attr"));
}
public void testHandleException() {
flow.getExceptionHandlerSet().add(
new TransitionExecutingFlowExecutionExceptionHandler().add(TestException.class, "myState2"));
MockRequestControlContext context = new MockRequestControlContext(flow);
context.setCurrentState(flow.getStateInstance("myState1"));
FlowExecutionException e = new FlowExecutionException(flow.getId(), flow.getStartState().getId(), "Oops!",
new TestException());
flow.handleException(e, context);