ApplicationContext appContext = new ApplicationContext(requestContext);
ContextInternals.setApplicationContext(requestContext, appContext);
appContext.setFragmentationSupported(true);
// Fragmentation needs a URL and rewriter for URL manipulation.
pageContext.setRootPageURL(new MarinerURL());
pageContext.setVolantis(new TestableVolantis() {
public PageURLRewriter getLayoutURLRewriter() {
return new PageURLRewriter() {
public MarinerURL rewriteURL(MarinerRequestContext context,
MarinerURL url,
PageURLDetails details) {