### Question:
MvcViewHandler extends ViewHandlerWrapper { @Override public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException { if (viewToRender instanceof NavigationResponseUIViewRoot) { viewToRender.encodeAll(context); } else { super.renderView(context, viewToRender); } } MvcViewHandler(ViewHandler delegate, DestinationViewResolver destinationViewResolver); @Override ViewHandler getWrapped(); @Override UIViewRoot createView(FacesContext context, String viewId); @Override UIViewRoot restoreView(FacesContext context, String viewId); @Override String getActionURL(FacesContext context, String viewId); @Override ViewDeclarationLanguage getViewDeclarationLanguage(FacesContext context, String viewId); @Override void renderView(FacesContext context, UIViewRoot viewToRender); @Override String getBookmarkableURL(FacesContext context, String viewId, Map<String, List<String>> parameters,
			boolean includeViewParams); @Override String getRedirectURL(FacesContext context, String viewId, Map<String, List<String>> parameters,
			boolean includeViewParams);  }### Answer:
@Test public void shouldDelegateRenderView() throws Exception { UIViewRoot viewToRender = mockUIViewRootWithModelSupport(); this.handler.renderView(this.context, viewToRender); verify(this.delegate).renderView(this.context, viewToRender); }
@Test public void shouldRenderNavigationResponse() throws Exception { NavigationResponseUIViewRoot viewToRender = mock(NavigationResponseUIViewRoot.class); this.handler.renderView(this.context, viewToRender); verify(viewToRender).encodeAll(this.context); verify(this.delegate, never()).renderView(this.context, viewToRender); }