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