xmlBuilder.append("</soap:Envelope>");
String xml = xmlBuilder.toString();
String actual = String.format(xml, "1");
DOMResult result = new DOMResult();
TransformerHelper transformerHelper = new TransformerHelper();
transformerHelper.transform(new StringSource(actual), result);
SoapMessage message = createMock(SoapMessage.class);
expect(message.getDocument()).andReturn((Document)result.getNode()).once();
replay(message);
String expected = String.format(xml, "2");