SOAPContextMapper mapper = new SOAPContextMapper();
mapper.setSOAPHeadersType(SOAPHeadersType.CONFIG);
// test mapFrom
SOAPMessage sourceMessage = newSourceMessage();
Context targetContext = newContext();
mapper.mapFrom(new SOAPBindingData(sourceMessage), targetContext);
Assert.assertEquals(newConfiguration("<first xmlns=\"urn:names:1.0\">John</first>"), getPropertyValue(targetContext, FIRST_NAME));
Assert.assertEquals(newConfiguration("<last xmlns=\"urn:names:1.0\">Doe</last>"), getPropertyValue(targetContext, LAST_NAME));
// test mapTo
Context sourceContext = newSourceContext();
SOAPMessage targetMessage = newTargetMessage();