MarinerRequestContext requestContext = new TestMarinerRequestContext();
context = new TestMarinerPageContext();
context.pushRequestContext(requestContext);
context.setDeviceLayout(runtimeDeviceLayout);
DeviceLayoutContext deviceContext = new TestDeviceLayoutContext();
resetElement();
attribute = new StyleAttributes();
attribute.setStyles(StylesBuilder.getDeprecatedStyles());
attribute.setTitle("My title");
deviceContext.setDeviceLayout(runtimeDeviceLayout);
context.pushDeviceLayoutContext(deviceContext);
ContextInternals.setMarinerPageContext(requestContext, context);
protocol.setMarinerPageContext(context);
PaneInstance paneInstance = new TestPaneInstance();
paneInstance.setStyleClass("fred");