### Question:
ContentViewerHelper implements IContentViewerHelper { @Override public String getRenderedContent(String contentId, String modelId, RequestContext reqCtx) throws ApsSystemException { return this.getRenderedContent(contentId, modelId, false, reqCtx); }  @Override String getRenderedContent(String contentId, String modelId, RequestContext reqCtx); @Override String getRenderedContent(String contentId, String modelId, boolean publishExtraTitle, RequestContext reqCtx); @Override ContentRenderizationInfo getRenderizationInfo(String contentId, String modelId, boolean publishExtraTitle, RequestContext reqCtx); @Override PublicContentAuthorizationInfo getAuthorizationInfo(String contentId, RequestContext reqCtx); void setContentModelManager(IContentModelManager contentModelManager); void setContentManager(IContentManager contentManager); void setContentDispenser(IContentDispenser contentDispenser); void setContentAuthorizationHelper(IContentAuthorizationHelper contentAuthorizationHelper);  }### Answer:
@Test public void testGetRenderedContent() throws Exception { HeadInfoContainer hic = Mockito.mock(HeadInfoContainer.class); when(this.reqCtx.getExtraParam(SystemConstants.EXTRAPAR_HEAD_INFO_CONTAINER)).thenReturn(hic); ContentModel model = Mockito.mock(ContentModel.class); when(this.contentModelManager.getContentModel(Mockito.anyLong())).thenReturn(model); when(model.getStylesheet()).thenReturn("..css style.."); when(model.getContentShape()).thenReturn("Body of content model"); String renderedContent = this.contentViewerHelper.getRenderedContent("ART123", "11", reqCtx); Assert.assertNotNull(renderedContent); Assert.assertEquals("Final Rendered Content", renderedContent); Mockito.verify(hic, Mockito.times(1)).addInfo("CSS", "..css style.."); Mockito.verify(contentDispenser, Mockito.times(1)).getRenderizationInfo("ART123", 11, "en", reqCtx, true); Mockito.verify(contentDispenser, Mockito.times(1)).resolveLinks(Mockito.any(ContentRenderizationInfo.class), Mockito.any(RequestContext.class)); Mockito.verify(reqCtx, Mockito.times(1)).getExtraParam(SystemConstants.EXTRAPAR_CURRENT_LANG); Mockito.verify(reqCtx, Mockito.times(1)).getExtraParam(SystemConstants.EXTRAPAR_CURRENT_WIDGET); Mockito.verify(reqCtx, Mockito.times(1)).getExtraParam(SystemConstants.EXTRAPAR_HEAD_INFO_CONTAINER); Mockito.verifyZeroInteractions(contentManager); }