RuntimeTestMarinerRequestContext requestContext = new RuntimeTestMarinerRequestContext();
EnvironmentContext environmentContext = new RuntimeTestEnvironmentContext();
((RuntimeTestEnvironmentContext)environmentContext)
.setResponseWriter(writer);
ApplicationContext applicationContext = new ApplicationContext(
requestContext);
pageContext.setDeviceLayout(deviceLayout);
applicationContext.setDevice(device);
applicationContext.setProtocol(protocol);
applicationContext.setDissectionSupported(true);
applicationContext.setFragmentationSupported(true);
applicationContext.setCanvasTagSupported(true);
applicationContext.setWMLCSupported(false);
applicationContext.setEncodingManager(new EncodingManager());
applicationContext.setPackager(new DefaultPackager());
TestVolantis volantisBean = new TestVolantis();
RuntimeDeviceTheme runtimeDeviceTheme = createRuntimeDeviceTheme();