final IPortletWindowId portletWindowId = new MockPortletWindowId("win1");
this.springPortletChannel.setPortletWidnowId(channelStaticData, portletWindowId);
final IPortletWindow portletWindow = createMock(IPortletWindow.class);
final IPortletWindowRegistry portletWindowRegistry = createMock(IPortletWindowRegistry.class);
final IPortletRequestParameterManager portletRequestParameterManager = createMock(IPortletRequestParameterManager.class);
expect(portletWindowRegistry.getPortletWindow(pcsRequest, portletWindowId)).andReturn(portletWindow);
expect(portletRequestParameterManager.getPortletRequestInfo(pcsRequest, portletWindowId)).andReturn(new PortletUrl(portletWindowId));
this.springPortletChannel.setPortletWindowRegistry(portletWindowRegistry);
this.springPortletChannel.setPortletRequestParameterManager(portletRequestParameterManager);