vcpRenderKitFactory.addRenderKit("HTML_CHAMELEON", vcpRenderKit);
renderKit.addRenderer(UIViewRoot.COMPONENT_FAMILY, UIViewRoot.COMPONENT_TYPE, new AjaxViewRootRenderer());
// setup nessesary components.
application.addComponent("javax.faces.ViewRoot", MockViewRoot.class.getName());
// setup AjaxContext.
ajaxContext = new AjaxContextImpl();
request.setAttribute(AjaxContext.AJAX_CONTEXT_KEY, ajaxContext);
// Setup ViewHandler / ViewRoot.
application.setViewHandler(new MockViewHandler(application.getViewHandler()));
UIViewRoot root = new MockViewRoot();