model.setStates(asList(AbstractStateModel.class, new ViewStateModel("view")));
Flow flow = getFlow(model);
AnnotatedAction action = (AnnotatedAction) flow.getStartActionList().get(0);
MockRequestContext context = new MockRequestContext(flow);
context.getFlowScope().put("intArray", new int[] { 1, 2 });
action.execute(context);
String[] expected = (String[]) context.getFlowScope().get("stringArray");
assertEquals("1", expected[0]);
assertEquals("2", expected[1]);
}