model.setStates(doubleList(end, notReached));
Flow flow = getFlow(model);
FlowExecutionImplFactory factory = new FlowExecutionImplFactory();
FlowExecution execution = factory.createFlowExecution(flow);
MockExternalContext context = new MockExternalContext();
MutableAttributeMap map = new LocalAttributeMap();
map.put("foo", "bar");
map.put("number", "3");
map.put("required", "9");
execution.start(map, context);
FlowExecutionOutcome outcome = execution.getOutcome();
assertEquals("end", outcome.getId());
assertEquals("bar", outcome.getOutput().get("foo"));
assertEquals("bar", outcome.getOutput().get("differentName"));
assertEquals(new Integer(3), outcome.getOutput().get("number"));
assertEquals(new Integer(3), outcome.getOutput().get("required"));