TrovitDocument extends XmlDocument<Trovit> { public static TrovitDocument newDocument() throws ParserConfigurationException, JAXBException { return newDocument(TrovitUtils.getFactory().createTrovit()); } TrovitDocument(Document document); static boolean isReadable(Document doc); static TrovitDocument newDocument(); static TrovitDocument newDocument(Trovit trovit); @Override Trovit toObject();  }
@Test @Ignore public void testToXml() { AdType ad = TrovitUtils.getFactory().createAdType(); ad.setTitle("an example property"); ad.setCity("Berlin"); Trovit trovit = TrovitUtils.getFactory().createTrovit(); trovit.getAd().add(ad); try { TrovitDocument doc = TrovitDocument.newDocument(trovit); String xml = doc.toXmlString(true); LOGGER.info("XML: " + xml); } catch (Exception ex) { LOGGER.error("Test of TrovitDocument.toXml failed!"); LOGGER.error("> " + ex.getLocalizedMessage(), ex); Assert.fail("Test of TrovitDocument.toXml failed!"); } }