public void testMerge() {
ClassPathResource resourceChild = new ClassPathResource("flow-inheritance-child.xml", getClass());
ClassPathResource resourceParent = new ClassPathResource("flow-inheritance-parent.xml", getClass());
registry.registerFlowModel("child",
new DefaultFlowModelHolder(new XmlFlowModelBuilder(resourceChild, registry)));
registry.registerFlowModel("parent", new DefaultFlowModelHolder(new XmlFlowModelBuilder(resourceParent,
registry)));
FlowModel flow = registry.getFlowModel("child");
assertEquals(1, flow.getGlobalTransitions().size());
assertEquals(2, flow.getStates().size());
assertEquals("view", ((AbstractStateModel) flow.getStates().get(0)).getId());