SearchResultsPortlet extends MVCPortlet { @Override public void render( RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException { PortletSharedSearchResponse portletSharedSearchResponse = portletSharedSearchRequest.search(renderRequest); SearchResultsPortletDisplayContext searchResultsPortletDisplayContext = buildDisplayContext( portletSharedSearchResponse, renderRequest, renderResponse); if (searchResultsPortletDisplayContext.isRenderNothing()) { renderRequest.setAttribute( WebKeys.PORTLET_CONFIGURATOR_VISIBILITY, Boolean.TRUE); } renderRequest.setAttribute( WebKeys.PORTLET_DISPLAY_CONTEXT, searchResultsPortletDisplayContext); super.render(renderRequest, renderResponse); }  @Override void render(
			RenderRequest renderRequest, RenderResponse renderResponse);  }
@Test public void testDocumentWithoutSummaryIsRemoved() throws Exception { Document document = createDocumentWithSummary(); setUpSearchResponseDocuments(document, createDocument()); render(); assertDisplayContextDocuments(document); }