expectations);
// These expectations must be set before the DOMProtocolMock is created.
psf.expects.getDOMFactory().returns(domFactory);
configuration.expects.getValidationHelper().returns(null).any();
DOMProtocolMock protocol = new DOMProtocolMock("protocol",
expectations, psf, configuration);
protocol.expects.getDocument().returns(dom).any();
protocol.expects.getMarinerPageContext().returns(new MarinerPageContext()).any();
//parsed Form Element differs from the one created by Emulator, so we need to nullify its styles