### Question:
FacesView extends AbstractUrlBasedView { @Override protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception { SpringFacesContext.getCurrentInstance(true).render(this, removeBindingResults(model)); } FacesView();  FacesView(String url);  FacesView(ViewArtifact viewArtifact); @Override void setUrl(String url); String getViewId(); ViewArtifact getViewArtifact();  }### Answer:
@Test public void shouldRenderRemovingBindingResults() throws Exception { FacesView view = new FacesView(); Map<String, Object> model = new HashMap<String, Object>(); model.put("key", "value"); model.put("binding", mock(BindingResult.class)); view.renderMergedOutputModel(model, this.request, this.response); verify(this.springFacesContext).render(eq(view), this.modelCaptor.capture()); assertThat(this.modelCaptor.getValue().size(), is(1)); assertThat(this.modelCaptor.getValue().get("key"), is((Object) "value")); }