JAXBContext jc = JAXBContext.newInstance("org.objectweb.hello_world_soap_http.types");
TestDynamicDataBindingCallback callback =
new TestDynamicDataBindingCallback(jc, Mode.PAYLOAD);
TestSOAPBodyDataWriter<SOAPBody> soapBodyDataWriter = new TestSOAPBodyDataWriter<SOAPBody>(callback);
GreetMe greetMe = new GreetMe();
greetMe.setRequestType("DIPLO");
soapBodyDataWriter.write(greetMe, soapMsg.getSOAPBody());
SOAPBody soapBody = soapBodyDataWriter.getTestSOAPBody();
assertTrue("TextContent should be DIPLO",
"DIPLO".equals(soapBody.getFirstChild().getTextContent()));