.addHeaderData(soapHeaderContent)
.addHeaderData("<AppInfo><appId>123456789</appId></AppInfo>");
SoapMessageConverter soapMessageConverter = new SoapMessageConverter();
StringResult soapHeaderResult = new StringResult();
reset(soapRequest, soapBody, soapHeader);
expect(soapRequest.getSoapBody()).andReturn(soapBody).once();
expect(soapBody.getPayloadResult()).andReturn(new StringResult()).once();
expect(soapRequest.getSoapHeader()).andReturn(soapHeader).times(2);
expect(soapHeader.getResult()).andReturn(soapHeaderResult).times(2);
replay(soapRequest, soapBody, soapHeader);
soapMessageConverter.convertOutbound(soapRequest, testMessage, new WebServiceEndpointConfiguration());
Assert.assertEquals(soapHeaderResult.toString(), soapHeaderContent + "<AppInfo><appId>123456789</appId></AppInfo>");
verify(soapRequest, soapBody, soapHeader);
}