factory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
ExternalContext extContext =
new ExternalContextImpl(config.getServletContext(),
request, response);
FacesContext context =
new FacesContextImpl(extContext, lifecycle);
// Validate correct calculations
assertEquals(request.getContextPath() + "/index.jsp",
Util.getViewHandler(getFacesContext()).
getResourceURL(context, "/index.jsp"));