MenuRendererSelectorLocator.setDefaultInstance(new RendererLocator());
// Set up the protocol (needed for OutputBuffer management)
// The test implementation avoids the need for an initialized volantis
// bean, which is jolly handy in this case
ProtocolBuilder builder = new ProtocolBuilder();
VolantisProtocol protocol = builder.build(
new TestProtocolRegistry.TestDOMProtocolFactory(),
InternalDeviceTestHelper.createTestDevice());
pageContext.setProtocol(protocol);
// Set the Layout (needed for FormatReference and panes)