super.setUp();
this.root = new MockMyfacesResponseStateManager();
this.flow = new FlowResponseStateManager(this.root);
this.manager = new MyFacesFlowResponseStateManager(this.flow);
this.requestContext = new MockRequestContext();
MockFlowExecutionContext executionContext = requestContext.getMockFlowExecutionContext();
MockFlowSession session = executionContext.getMockActiveSession();
ViewFactory viewFactory = EasyMock.createNiceMock(ViewFactory.class);
session.setState(new ViewState(session.getDefinitionInternal(), "view", viewFactory));
executionContext.setKey(new MockFlowExecutionKey("x"));
RequestContextHolder.setRequestContext(requestContext);
}