assertNull(execution.getKey());
}
public void testRestoreExecutionState() {
FlowExecutionImpl flowExecution = (FlowExecutionImpl) factory.createFlowExecution(flowDefinition);
LocalAttributeMap executionAttributes = new LocalAttributeMap();
factory.setExecutionAttributes(executionAttributes);
FlowExecutionListener listener = new FlowExecutionListenerAdapter() {
};
factory.setExecutionListenerLoader(new StaticFlowExecutionListenerLoader(listener));
MockFlowExecutionKeyFactory keyFactory = new MockFlowExecutionKeyFactory();
factory.setExecutionKeyFactory(keyFactory);
FlowExecutionKey flowExecutionKey = new MockFlowExecutionKey("e1s1");
LocalAttributeMap conversationScope = new LocalAttributeMap();
SimpleFlowDefinitionLocator locator = new SimpleFlowDefinitionLocator();
FlowSessionImpl session1 = new FlowSessionImpl();
session1.setFlowId("flow");
session1.setStateId("end");
FlowSessionImpl session2 = new FlowSessionImpl();