final ChannelRuntimeData channelRuntimeData = new ChannelRuntimeData();
channelRuntimeData.setBaseActionURL("base/action.url");
request.setAttribute(IPortletAdaptor.ATTRIBUTE__RUNTIME_DATA, channelRuntimeData);
final MockPortletEntity portletEntity1 = new MockPortletEntity();
portletEntity1.setPortletEntityId(portletEntityId1);
portletEntity1.setChannelSubscribeId(portletEntityId1.getStringId());
final MockPortletEntity portletEntity2 = new MockPortletEntity();
portletEntity2.setPortletEntityId(portletEntityId2);
portletEntity2.setChannelSubscribeId(portletEntityId2.getStringId());
final MockPortletEntity portletEntity3 = new MockPortletEntity();
portletEntity3.setPortletEntityId(portletEntityId3);
portletEntity3.setChannelSubscribeId(portletEntityId3.getStringId());
final IPortletWindowRegistry portletWindowRegistry = createMock(IPortletWindowRegistry.class);
expect(portletWindowRegistry.getParentPortletEntity(request, portletWindowId1))
.andReturn(portletEntity1)
.anyTimes();