public void testShouldPassThroughRenderUrlToServletUrlRendererIfNotPortletRequest() throws Exception {
UrlRenderer mockRenderer = EasyMock.createMock(UrlRenderer.class);
ActionContext.getContext().put(StrutsStatics.STRUTS_PORTLET_CONTEXT, null);
renderer.setServletRenderer(mockRenderer);
URL url = new URL(stack, new PortletServletRequest(request, null), new PortletServletResponse(response));
StringWriter renderOutput = new StringWriter();
mockRenderer.renderUrl(renderOutput, url.getUrlProvider());
EasyMock.replay(mockRenderer);
renderer.renderUrl(renderOutput, url.getUrlProvider());
EasyMock.verify(mockRenderer);