verify(service, pageContext, servletContext, wContext, writer);
}
@Test
public void doStartTag_debugOff() throws IOException, JspException {
PortalPreference portalPreference = new PortalPreferenceImpl(PortalPreferenceKeys.JAVASCRIPT_DEBUG_MODE, DEBUG_OFF);
expect(service.getPreference(PortalPreferenceKeys.JAVASCRIPT_DEBUG_MODE)).andReturn(portalPreference);
expect(pageContext.getServletContext()).andReturn(servletContext).anyTimes();
expect(servletContext.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE)).andReturn(wContext).anyTimes();
expect(wContext.getBean(PortalPreferenceService.class)).andReturn(service).anyTimes();