requestContext.expects.getEnvironmentContext().returns(
environmentContextMock).any();
// Create any mock objects whose constructors require expectations
// to be set.
group = new XFGroupElementImplMock("group", expectations, context);
outputBuffer = new DOMOutputBufferMock(
"outputBuffer", expectations, domFactoryMock);
context.expects.getCurrentElement().returns(group);
outputBuffer.expects.getPCDATAValue().returns(CONTENT);
pageContext.expects.popOutputBuffer(outputBuffer);