public void testRenderFragment_DynamicAttribute() throws Exception {
ApplicationContext tilesAppContext = new WildcardServletApplicationContext(servletContext);
Request tilesRequest = new ServletRequest(tilesAppContext, request, response);
BasicTilesContainer container = (BasicTilesContainer) TilesAccess.getContainer(tilesAppContext);
AttributeContext attributeContext = container.startContext(tilesRequest);
attributeContext.putAttribute("body", new Attribute("/WEB-INF/dynamicTemplate.jsp"));
Map<String, Attribute> resultMap = new HashMap<String, Attribute>();
ajaxTilesView.addRuntimeAttributes(container, tilesRequest, resultMap);
assertNotNull(resultMap.get("body"));
assertEquals("/WEB-INF/dynamicTemplate.jsp", resultMap.get("body").toString());