fragMock.expects(new InvokeAtLeastOnceMatcher()).method("getId").withNoArguments()
.will(new ReturnStub("frag1"));
entityMock.expects(new InvokeAtLeastOnceMatcher()).method("getPortletWindowList").withNoArguments().will(
new ReturnStub(windowList));
windowListMock.expects(new InvokeCountMatcher(4)).method("add").withAnyArguments().will(
new ListAppendStub(windows));
PortletWindow window = windowAccess.getPortletWindow(f1);
assertNotNull(window);