protected void doTestUrl(PortalURL portalURL, HttpServletRequest request)
{
portalURL.setRequest(request);
portalURL.setCharacterEncoding("UTF-8");
PortletWindow window = new PortletWindowImpl("111");
NavigationalState nav = portalURL.getNavigationalState();
// Check that they come out correctly
assertTrue("window mode is not set", nav.getMode(window).equals(PortletMode.EDIT));
assertTrue("window state is not set", nav.getState(window).equals(WindowState.MAXIMIZED));
PortletWindow target = nav.getPortletWindowOfAction();
assertNotNull("target window is null", target);
assertEquals("target window should equal window 111", target.getId(), "111");
PortletWindow maximizedWindow = nav.getMaximizedWindow();
assertNotNull("maximized window is null", maximizedWindow);
assertEquals("maximized window should equal window 111", maximizedWindow.getId(), "111");
Iterator iter = nav.getParameterNames(target);
assertTrue("There should be one parameter",iter.hasNext());
while ( iter.hasNext() ) {
assertEquals("parameter name should equals \"test\"", (String)iter.next(), "test");