* Test method for
* {@link org.apache.myfaces.application.jsp.JspViewHandlerImpl#createView(javax.faces.context.FacesContext, java.lang.String)}.
*/
public void testCreateView()
{
ViewHandlerSupport viewHandlerSupport = _mocksControl.createMock(ViewHandlerSupport.class);
_testimpl.setViewHandlerSupport(viewHandlerSupport);
expect(viewHandlerSupport.calculateViewId(same(_facesContext), eq("viewidxxx"))).andReturn("calculatedviewId");
expect(_facesContext.getApplication()).andReturn(_application);
ViewHandler viewHandler = _mocksControl.createMock(ViewHandler.class);
expect(_application.getViewHandler()).andReturn(viewHandler);
expect(_facesContext.getViewRoot()).andReturn(null);
UIViewRoot viewRoot = _mocksControl.createMock(UIViewRoot.class);