output3.setType("integer");
output3.setRequired("true");
OutputModel output4 = new OutputModel("literal", "'a literal'");
model.setOutputs(quadList(output1, output2, output3, output4));
EndStateModel end = new EndStateModel("end");
end.setOutputs(singleList(new OutputModel("foo", "flowScope.foo")));
EndStateModel notReached = new EndStateModel("notReached");
notReached.setOutputs(singleList(new OutputModel("notReached", "flowScope.foo")));
model.setStates(doubleList(end, notReached));
Flow flow = getFlow(model);
FlowExecutionImplFactory factory = new FlowExecutionImplFactory();