new SimpleFlowExecutionSnapshotFactory(executionFactory, newMockFlowLocator(flow)));
keyFactory.setAlwaysGenerateNewNextKey(true);
executionFactory.setExecutionKeyFactory(keyFactory);
final FlowExecution execution = executionFactory.createFlowExecution(flow);
execution.start(null, new MockExternalContext());
// Flow state: rendered subflow view
assertTrue(execution.isActive());
assertEquals("view", execution.getActiveSession().getScope().get("renderCalled"));
final FlowExecutionKey key1 = execution.getKey();