UIViewRoot root = new UIViewRoot();
MockFacesContext12 facesContext = new MockFacesContext12();
IMocksControl mocksControl = EasyMock.createControl();
Application application = mocksControl.createMock(Application.class);
ViewHandler viewHandler = mocksControl.createMock(ViewHandler.class);
ELContext elContext = mocksControl.createMock(ELContext.class);
ExpressionFactory expressionFactory = mocksControl.createMock(ExpressionFactory.class);
ValueExpression valueExpression = mocksControl.createMock(ValueExpression.class);
facesContext.setApplication(application);
facesContext.setViewRoot(root);
facesContext.setELContext(elContext);