// let's make sure our test string is unmarshallable, just for a good sanity check
JAXBContext testcontext = JAXBContext.newInstance(MyPojo.class);
Unmarshaller testunmarshaller = testcontext.createUnmarshaller();
JAXBElement<MyPojo> testresponse =
(JAXBElement<MyPojo>)testunmarshaller.unmarshal(new StreamSource(new ByteArrayInputStream(xmlMyPojoWithDTD.getBytes())), MyPojo.class);
MyPojo myPojo = testresponse.getValue();
assertEquals("we could not unmarshal the test xml", "99999999", myPojo.getStringdata().trim());
}