renderKit = new DefaultRenderKitWrapperFactory().create(new MockRenderKit());
renderKitFactory.addRenderKit("HTML_BASIC", renderKit);
// additional setup not provided automatically by the shale mock stuff
facesContext.getExternalContext().getApplicationMap().put(MyfacesConfig.class.getName(), new MyfacesConfig());
writer = new MockResponseWriter(new StringWriter(), null, null);
facesContext.setResponseWriter(writer);
TestUtils.addDefaultRenderers(facesContext);
TestUtils.addDefaultValidators(facesContext);