assertNotNull(flow.getAttributes().get("persistenceContext"));
assertTrue((Boolean) flow.getAttributes().get("persistenceContext"));
}
public void testFlowInputOutputMapping() {
InputModel input1 = new InputModel("foo", "flowScope.foo");
InputModel input2 = new InputModel("foo", "flowScope.bar");
InputModel input3 = new InputModel("number", "flowScope.baz");
input3.setType("integer");
InputModel input4 = new InputModel("required", "flowScope.boop");
input4.setRequired("true");
model.setInputs(asList(InputModel.class, input1, input2, input3, input4));
OutputModel output1 = new OutputModel("differentName", "flowScope.bar");
OutputModel output2 = new OutputModel("number", "flowScope.baz");
output2.setType("integer");