}
public void testWindowAccess() throws Exception
{
List windows = new ArrayList();
ContentFragment f1 = new ContentFragmentImpl((Fragment) fragMock.proxy(), new HashMap());
MutablePortletEntity entity = (MutablePortletEntity) entityMock.proxy();
CompositeWindowList windowList = (CompositeWindowList) windowListMock.proxy();
entityAccessMock.expects(new InvokeAtLeastOnceMatcher()).method("getPortletEntityForFragment")
.withAnyArguments().will(new ReturnStub(entity));
fragMock.expects(new InvokeAtLeastOnceMatcher()).method("getId").withNoArguments()