TestMarinerPageContext pageContext = new TestMarinerPageContext();
MockMenuModelBuilder menuModelBuilder = new MockMenuModelBuilder();
pageContext.setMenuBuilder(menuModelBuilder);
MarinerRequestContext requestContext = new TestMarinerRequestContext();
ProtocolBuilder builder = new ProtocolBuilder();
DOMProtocol protocol = (DOMProtocol) builder.build(
new TestProtocolRegistry.TestDOMProtocolFactory(),
InternalDeviceTestHelper.createTestDevice());
pageContext.pushRequestContext(requestContext);
pageContext.setProtocol(protocol);