fragMock.expects(new InvokeAtLeastOnceMatcher()).method("getId").withNoArguments()
.will(new ReturnStub("frag1"));
entityMock.expects(new InvokeAtLeastOnceMatcher()).method("getPortletWindowList").withNoArguments().will(
new ReturnStub(windowList));
entityMock.expects(new InvokeAtLeastOnceMatcher()).method("getId").withNoArguments().will(
new ReturnStub(new JetspeedObjectID("entity1")));
windowListMock.expects(new InvokeCountMatcher(4)).method("add").withAnyArguments().will(
new ListAppendStub(windows));