request.setAttribute(DispatcherServlet.LOCALE_RESOLVER_ATTRIBUTE, new AcceptHeaderLocaleResolver());
view.render(new HashMap(), request, response);
assertEquals("/WEB-INF/jsp/layout.jsp", response.getForwardedUrl());
ComponentContext cc = (ComponentContext) request.getAttribute(ComponentConstants.COMPONENT_CONTEXT);
assertNotNull(cc);
PathAttribute attr = (PathAttribute) cc.getAttribute("content");
assertEquals("/WEB-INF/jsp/otherContent.jsp", attr.getValue());
assertEquals("testVal", request.getAttribute("testAttr"));
view.render(new HashMap(), request, response);
assertEquals("/WEB-INF/jsp/layout.jsp", response.getForwardedUrl());
cc = (ComponentContext) request.getAttribute(ComponentConstants.COMPONENT_CONTEXT);
assertNotNull(cc);
attr = (PathAttribute) cc.getAttribute("content");
assertEquals("/WEB-INF/jsp/otherContent.jsp", attr.getValue());
assertEquals("testVal", request.getAttribute("testAttr"));
}