@Test
public void testMarshalFromXml() {

    HelloRequest req = new HelloRequest();
    req.setName("Peter");
    String xml = Tools.marshalToXml(req, HelloRequest.class);
    assertThat(xml, CoreMatchers.containsString("<helloRequest>"));
    assertThat(xml, CoreMatchers.containsString("</helloRequest>"));
    assertThat(xml, CoreMatchers.containsString("<name>"));
    assertThat(xml, CoreMatchers.containsString("Peter"));
    xml = Tools.marshalToXml(req, QName.valueOf("hello"));
    assertThat(xml, CoreMatchers.containsString("<hello>"));
    assertThat(xml, CoreMatchers.containsString("</hello>"));
    assertThat(xml, CoreMatchers.containsString("<name>"));
    assertThat(xml, CoreMatchers.containsString("Peter"));
}