assertEquals("foo", ((VarModel) ((ViewStateModel) flow.getStates().get(0)).getVars().get(0)).getName());
}
public void testViewStateModelBinding() {
ClassPathResource resource = new ClassPathResource("flow-viewstate-model-binding.xml", getClass());
FlowModelBuilder builder = new XmlFlowModelBuilder(resource, registry);
builder.init();
builder.build();
FlowModel flow = builder.getFlowModel();
ViewStateModel model = (ViewStateModel) flow.getStates().get(0);
assertEquals("formObject", model.getModel());
assertEquals("objectProperty", ((BindingModel) model.getBinder().getBindings().get(0)).getProperty());
assertEquals("customConverter", ((BindingModel) model.getBinder().getBindings().get(0)).getConverter());
}