ProtocolConfigurationMock configuration =
new ProtocolConfigurationMock("configuration",
expectations);
EmulatedXFormDescriptorMock fd =
new EmulatedXFormDescriptorMock("fd", expectations);
OutputBufferFactoryMock bufferFactory = new OutputBufferFactoryMock(
"bufferFactory", expectations);
DOMOutputBufferMock buffer =
new DOMOutputBufferMock("buffer", expectations);
// These expectations must be set before the DOMProtocolMock is created.