PAPIElement element = createTestablePAPIElement();
// Set up the common test environment
TestMarinerPageContext pageContext = new TestMarinerPageContext();
MarinerRequestContext requestContext = new TestMarinerRequestContext();
ProtocolBuilder builder = new ProtocolBuilder();
DOMProtocol protocol = (DOMProtocol) builder.build(
new TestProtocolRegistry.TestDOMProtocolFactory(),
InternalDeviceTestHelper.createTestDevice());
// Set up the protocol (needed for OutputBuffer management)
// The test implementation avoids the need for an initialized volantis