// since we rely on encoding rules which are defined in the protocol.
ProtocolBuilder builder = new ProtocolBuilder();
VolantisProtocol protocol = builder.build(
new ProtocolRegistry.WMLVersion1_3Factory(),
InternalDeviceTestHelper.createTestDevice());
CharacterEncoder pce = new ProtocolCharacterEncoder(protocol);
EncodingWriter enc = new EncodingWriter(output, pce);
return new WMLProducer(output, enc);
}