private void privateSetUp() {
attributes = new HeadingAttributes();
attributes.setStyles(StylesBuilder.getDeprecatedStyles());
document = domFactory.createDocument();
pageContext = new TestMarinerPageContext();
requestContext = new TestMarinerRequestContext();
ContextInternals.setMarinerPageContext(requestContext, pageContext);
// Strangely, this line is only required in Mimas and not Metis. Weird.
// I bet Paul knows why. Might be something to do with the
// ApplicationContext stuff not being in Mimas yet?
pageContext.pushRequestContext(requestContext);