ApplicationContext appContext =
new MultipartApplicationContext(requestContext);
TestEnvironmentContext envContext =
new TestEnvironmentContext(getClass().getName() + ".message");
pageContext.pushRequestContext(requestContext);
ContextInternals.setEnvironmentContext(requestContext, envContext);
ContextInternals.setMarinerPageContext(requestContext, pageContext);
ContextInternals.setApplicationContext(requestContext, appContext);
appContext.setPackager(handler);
appContext.setAssetURLRewriter(handler);