### Question:
FacesPostbackHandler extends AbstractHandlerMapping implements HandlerAdapter, HandlerMapping, Ordered,
		DispatcherAware { public ModelAndView handle(final HttpServletRequest request, HttpServletResponse response, final Object handler) throws Exception { Assert.state(supports(handler), "The specified handler is not supported"); ViewArtifact viewArtifact = ((Postback) handler).getViewArtifact(); SpringFacesContext.getCurrentInstance(true).render(new FacesView(viewArtifact), null); return null; } FacesPostbackHandler(FacesViewStateHandler stateHandler); boolean supports(Object handler); ModelAndView handle(final HttpServletRequest request, HttpServletResponse response, final Object handler); long getLastModified(HttpServletRequest request, Object handler); void setDispatcher(Dispatcher dispatcher);  }### Answer:
@Test @SuppressWarnings("unchecked") public void shouldRenderOnHandle() throws Exception { ViewArtifact viewArtifact = new ViewArtifact("artifact"); Postback handler = new Postback(viewArtifact, this.originalHandler); HttpServletResponse response = mock(HttpServletResponse.class); ModelAndView result = this.postbackHandler.handle(this.request, response, handler); verify(this.springFacesContext).render(this.viewCaptor.capture(), (Map<String, Object>) isNull()); assertThat(((FacesView) this.viewCaptor.getValue()).getViewArtifact(), is(viewArtifact)); assertThat(result, is(nullValue())); }