List beans = new ArrayList(2);
beans.add(new TestBean("1", "One"));
beans.add(new TestBean("2", "Two"));
Map flowContextObject = new HashMap();
flowContextObject.put("beans", beans);
Request request = new MockRequest();
request.setAttribute(FlowHelper.CONTEXT_OBJECT, flowContextObject);
Map objectModel = new HashMap();
objectModel.put(ObjectModelHelper.REQUEST_OBJECT, request);
Map contextObjectModel = new HashMap();
contextObjectModel.put(ContextHelper.CONTEXT_OBJECT_MODEL, objectModel);
Context context = new DefaultContext(contextObjectModel);