final PortletUrl portletUrl = new PortletUrl(portletWindowId);
portletUrl.setRequestType(RequestType.RENDER);
final IPortletRequestParameterManager portletRequestParameterManager = createMock(IPortletRequestParameterManager.class);
final IPortletRenderer portletRenderer = createMock(IPortletRenderer.class);
expect(portletRenderer.doRender(portletWindowId, pcsRequest, response, printWriter))
.andReturn(new PortletRenderResult("theTitle"));
this.springPortletChannel.setPortletRequestParameterManager(portletRequestParameterManager);
this.springPortletChannel.setPortletDefinitionRegistry(portletDefinitionRegistry);
this.springPortletChannel.setPortletEntityRegistry(portletEntityRegistry);