Is24XmlDocument extends XmlDocument<ImmobilienTransferTyp> { public static Is24XmlDocument newDocument() throws ParserConfigurationException, JAXBException { return newDocument(Is24XmlUtils.getFactory().createImmobilienTransferTyp()); } Is24XmlDocument(Document document); static boolean isReadable(Document doc); static Is24XmlDocument newDocument(); static Is24XmlDocument newDocument(ImmobilienTransferTyp transfer); static Is24XmlDocument newDocument(IS24ImmobilienTransfer transfer); @Override ImmobilienTransferTyp toObject();  }
@Test @Ignore @SuppressWarnings("Duplicates") public void testToXml() { Anbieter agent = Is24XmlUtils.getFactory().createImmobilienTransferTypAnbieter(); agent.setScoutKundenID("123456"); ImmobilienTransferTyp transfer = Is24XmlUtils.getFactory().createImmobilienTransferTyp(); transfer.setAnbieter(agent); transfer.setEmailBeiFehler("test@test.org"); transfer.setErstellerSoftware("OpenEstate.org"); transfer.setErstellerSoftwareVersion("1.0"); try { Is24XmlDocument doc = Is24XmlDocument.newDocument(transfer); String xml = doc.toXmlString(true); LOGGER.info("XML: " + xml); } catch (Exception ex) { LOGGER.error("Test of Is24XmlDocument.toXml failed!"); LOGGER.error("> " + ex.getLocalizedMessage(), ex); Assert.fail("Test of Is24XmlDocument.toXml failed!"); } }