// Set up the normal testing page and request contexts
TestMarinerRequestContext requestContext = new TestMarinerRequestContext();
pageContext.pushRequestContext(requestContext);
ContextInternals.setMarinerPageContext(requestContext, pageContext);
ContextInternals.setEnvironmentContext(requestContext,
new TestEnvironmentContext());
// Set up fragmentation specific prerequisites.
// Set up an app context so we can enable fragmentation.
ApplicationContext appContext = new ApplicationContext(requestContext);
ContextInternals.setApplicationContext(requestContext, appContext);