FlowExecutionExceptionHandlerSet handlerSet = new FlowExecutionExceptionHandlerSet();
handlerSet.add(new TestStateExceptionHandler(NullPointerException.class, "null"));
handlerSet.add(new TestStateExceptionHandler(FlowExecutionException.class, "execution 1"));
handlerSet.add(new TestStateExceptionHandler(FlowExecutionException.class, "execution 2"));
assertEquals(3, handlerSet.size());
FlowExecutionException e = new FlowExecutionException("flowId", "stateId", "Test");
assertTrue(handlerSet.handleException(e, context));
assertFalse(context.getFlowScope().contains("null"));
assertTrue(context.getFlowScope().contains("execution 1"));
assertFalse(context.getFlowScope().contains("execution 2"));
}