expect(attributeContext.getPreparer()).andReturn(null);
expect(attributeContext.getTemplateAttribute()).andReturn(templateAttribute);
expect(templateAttribute.getRenderer()).andReturn("renderer");
expect(rendererFactory.getRenderer("renderer")).andReturn(renderer);
expect(attributeEvaluatorFactory.getAttributeEvaluator(templateAttribute)).andReturn(evaluator);
expect(evaluator.evaluate(templateAttribute, request)).andReturn("/mytemplate.jsp");
expect(templateAttribute.isPermitted(request)).andReturn(true);
renderer.render("/mytemplate.jsp", request);
replay(applicationContext, attributeEvaluatorFactory, evaluator,
definitionsFactory, preparerFactory, rendererFactory, request,