WisItUtils { public static WisItDocument createDocument(InputStream input) throws SAXException, IOException, ParserConfigurationException { return createDocument(XmlUtils.newDocument(input, true)); } private  WisItUtils(); static WisItDocument createDocument(InputStream input); static WisItDocument createDocument(File xmlFile); static WisItDocument createDocument(String xmlString); static WisItDocument createDocument(Document doc); @SuppressWarnings("unused") static Marshaller createMarshaller(); @SuppressWarnings("Duplicates") static Marshaller createMarshaller(String encoding, boolean formatted); static Unmarshaller createUnmarshaller(); synchronized static JAXBContext getContext(); static DateFormat getDateTimeFormat(); synchronized static ObjectFactory getFactory(); synchronized static void initContext(ClassLoader classloader); static Calendar parseDateTime(String value); static BigDecimal parseDecimal(String value); static BigDecimal parseDouble(String value); static BigInteger parsePositiveInteger(String value); static Boolean parseYesNo(String value); static String printDateTime(Calendar value); static String printDecimal(BigDecimal value); static String printDouble(BigDecimal value); static String printPositiveInteger(BigInteger value); static String printYesNo(Boolean value); @SuppressWarnings("unused")
    final static String NAMESPACE; @SuppressWarnings("unused")
    final static String PACKAGE; }
@Test public void testCreateDocument() { String transferXml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n" + "<WIS>\n" + " <OBJEKTE>\n" + " <ANZAHL>2</ANZAHL>\n" + " <OBJEKT>\n" + " </OBJEKT>\n" + " <OBJEKT>\n" + " </OBJEKT>\n" + " </OBJEKTE>\n" + "</WIS>"; WisItDocument doc; try { doc = WisItUtils.createDocument(transferXml); Assert.assertNotNull( "Transfer was processed.", doc); Assert.assertTrue( "Transfer was processed as TransferDocument.", doc instanceof WisItDocument); } catch (Exception ex) { LOGGER.error("Test of TrovitUtils.createDocument failed!"); LOGGER.error("> " + ex.getLocalizedMessage(), ex); Assert.fail("Test of TrovitUtils.createDocument failed!"); } }