e = new FlowExecutionException(state.getOwner().getId(), state.getId(), "Oops", new RuntimeException());
assertTrue("Doesn't handle state exception", handler.canHandle(e));
}
public void testFlowStateExceptionHandlingTransition() {
new EndState(flow, "end");
TransitionExecutingFlowExecutionExceptionHandler handler = new TransitionExecutingFlowExecutionExceptionHandler();
handler.add(TestException.class, "end");
flow.getExceptionHandlerSet().add(handler);
FlowExecutionListener listener = new FlowExecutionListenerAdapter() {
public void sessionEnding(RequestContext context, FlowSession session, MutableAttributeMap output) {