}
public void testExceptionHandlers() {
FlowModel model = new FlowModel();
model.setStates(asList(AbstractStateModel.class, new EndStateModel("state")));
model.setExceptionHandlers(asList(ExceptionHandlerModel.class, new ExceptionHandlerModel("exceptionHandler")));
FlowExecutionExceptionHandler handler = new FlowExecutionExceptionHandler() {
public boolean canHandle(FlowExecutionException exception) {
return true;
}