final IPortletWindow portletWindow = createMock(IPortletWindow.class);
expect(portletWindow.getExpirationCache()).andReturn(null);
final IPortletWindowRegistry portletWindowRegistry = createMock(IPortletWindowRegistry.class);
final IPortletRequestParameterManager portletRequestParameterManager = createMock(IPortletRequestParameterManager.class);
expect(portletWindowRegistry.getPortletWindow(pcsRequest, portletWindowId)).andReturn(portletWindow);
expect(portletWindowRegistry.getParentPortletEntity(pcsRequest, portletWindowId)).andReturn(portletEntity);
expect(portletRequestParameterManager.getPortletRequestInfo(pcsRequest, portletWindowId)).andReturn(null);
final PortletDD portletDD = new PortletDD();
portletDD.setExpirationCache(10);