expect(portletWindowRegistry.isTransient(request, wId3))
.andReturn(true)
.anyTimes();
final MockPortletWindow w2 = new MockPortletWindow();
w2.setDelegationParent(wId1);
expect(portletWindowRegistry.getPortletWindow(request, wId2))
.andReturn(w2)
.anyTimes();
final MockPortletWindow w3 = new MockPortletWindow();
w3.setDelegationParent(wId2);
expect(portletWindowRegistry.getPortletWindow(request, wId3))
.andReturn(w3)
.anyTimes();