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("foo,bar", model.getValidationHints());
assertEquals("objectProperty", model.getBinder().getBindings().get(0).getProperty());
assertEquals("customConverter", model.getBinder().getBindings().get(0).getConverter());
}