mockRequest.setRequestURI("/uPortal/home/normal/weather.31/render.uP");
IPortletWindowId mockPortletWindowId = createMock(IPortletWindowId.class);
expect(mockPortletWindowId.getStringId()).andReturn("weather");
replay(mockPortletWindowId);
ITransientPortletWindowRegistry mockPortletWindowRegistry = createMock(ITransientPortletWindowRegistry.class);
expect(mockPortletWindowRegistry.getPortletWindowId("weather")).andReturn(mockPortletWindowId);
replay(mockPortletWindowRegistry);
PortalUrlProviderImpl provider = new PortalUrlProviderImpl();
provider.setPortletWindowRegistry(mockPortletWindowRegistry);
IPortalRequestInfo requestInfo = provider.getPortalRequestInfo(mockRequest);