final MockPortletWindow portletWindow = new MockPortletWindow();
final MockPortletEntityId portletEntityId = new MockPortletEntityId("1");
portletWindow.setPortletEntityId(portletEntityId);
final MockPortletDefinitionId portletDefinitionId = new MockPortletDefinitionId("2");
final IPortletDefinition portletDefinition = EasyMock.createMock(IPortletDefinition.class);
EasyMock.expect(portletDefinition.getPortletDefinitionId()).andReturn(portletDefinitionId);
final IPortletEntityRegistry portletEntityRegistry = EasyMock.createMock(IPortletEntityRegistry.class);