expect(request.getWriter()).andReturn(writer);
container.prepare("myPreparer", request);
expect(resolver.computeAttribute(container, null, "myName", "myRole", true, "myDefaultValue",
"myDefaultValueRole", "myDefaultValueType", request)).andReturn(null);
expect(container.startContext(request)).andReturn(attributeContext);
container.endContext(request);
replay(resolver, container, writer, request, applicationContext, modelBody);
model.execute(true, "myPreparer", "myRole", "myDefaultValue", "myDefaultValueRole", "myDefaultValueType",
"myName", null, request, modelBody);
verify(resolver, container, writer, request, applicationContext, modelBody);