new ContainerInstanceMock("container", expectations);
// This expectation is required in order to create the control element
// with no parent element.
contextMock.expects.getCurrentElement().returns(null);
final MarinerRequestContextMock requestContext =
new MarinerRequestContextMock("requestContext", expectations);
contextMock.expects.getInitialRequestContext().returns(
requestContext).any();
final EnvironmentContextMock environmentContextMock =
new EnvironmentContextMock("environmentContextMock", expectations);
environmentContextMock.expects.getCachingDirectives().returns(null).