public void setUp() throws Exception
{
this.portletFactory = new JetspeedPortletFactory(new RequestDispatcherServiceImpl(), true, true);
PortalConfiguration configuration = (PortalConfiguration) DelegatingObjectProxy.createProxy(new Class [] { PortalConfiguration.class },
new MockPortalConfiguration());
PortalContext portalContext = (PortalContext) DelegatingObjectProxy.createProxy(new Class [] { PortalContext.class },
new MockPortalContext(configuration));
this.portletFactory.setPortalContext(portalContext);
}