FlowLocation location2 = new FlowLocation("flow2", "org/springframework/webflow/config/flow.xml", attributes);
FlowLocation[] flowLocations = new FlowLocation[] { location1, location2 };
factoryBean.setFlowBuilderServices(TestFlowBuilderServicesFactory.getServices());
factoryBean.setFlowLocations(flowLocations);
factoryBean.afterPropertiesSet();
FlowDefinitionRegistry registry = (FlowDefinitionRegistry) factoryBean.getObject();
FlowDefinition def = registry.getFlowDefinition("flow1");
assertNotNull(def);
assertEquals("flow1", def.getId());
assertEquals("bar", def.getAttributes().get("foo"));
assertEquals(new Integer(2), def.getAttributes().getInteger("bar"));
def = registry.getFlowDefinition("flow2");
assertNotNull(def);
assertEquals("flow2", def.getId());
}