ImmobiliareItUtils { public static ImmobiliareItDocument createDocument(InputStream input) throws SAXException, IOException, ParserConfigurationException { return createDocument(XmlUtils.newDocument(input, true)); } private  ImmobiliareItUtils(); static ImmobiliareItDocument createDocument(InputStream input); static ImmobiliareItDocument createDocument(File xmlFile); static ImmobiliareItDocument createDocument(String xmlString); static ImmobiliareItDocument createDocument(Document doc); @SuppressWarnings("unused") static Marshaller createMarshaller(); static Marshaller createMarshaller(String encoding, boolean formatted); static Unmarshaller createUnmarshaller(); synchronized static JAXBContext getContext(); static String getCountryCode(String country); synchronized static ObjectFactory getFactory(); synchronized static void initContext(ClassLoader classloader); static boolean isValidDateUpdatedType(Calendar value); static boolean isValidEmailType(String value); static boolean isValidLatitude(BigDecimal value); @Deprecated static boolean isValidLatitude(Double value); static boolean isValidLongitude(BigDecimal value); @Deprecated static boolean isValidLongitude(Double value); static boolean isValidRooms(Integer value); static boolean isValidYear(Integer value); static Category parseCategory(String value); static String parseCountry(String value); static Currency parseCurrency(String value); static Calendar parseDateUpdatedType(String value); static String parseEmailType(String value); static EnergyUnit parseEnergyUnit(String value); static BigInteger parseInteger(String value); static LandSizeUnit parseLandSizeUnit(String value); static BigDecimal parseLatitude(String value); static BigDecimal parseLongitude(String value); static Integer parseRooms(String value); static SizeUnit parseSizeUnit(String value); static String parseText3000(String value); @SuppressWarnings("unused") static Transaction parseTransaction(String value); static Integer parseYear(String value); static Boolean parseYesNo(String value); static Boolean parseYN(String value); static String printCategory(Category value); static String printCountry(String value); static String printCurrency(Currency value); static String printDateUpdatedType(Calendar value); static String printEmailType(String value); static String printEnergyUnit(EnergyUnit value); static String printInteger(BigInteger value); static String printLandSizeUnit(LandSizeUnit value); static String printLatitude(BigDecimal value); static String printLongitude(BigDecimal value); static String printRooms(Integer value); static String printSizeUnit(SizeUnit value); static String printText3000(String value); @SuppressWarnings("unused") static String printTransaction(Transaction value); static String printYear(Integer value); static String printYesNo(Boolean value); static String printYN(Boolean value); @SuppressWarnings("unused")
    final static ImmobiliareItVersion VERSION; @SuppressWarnings("unused")
    final static String NAMESPACE; @SuppressWarnings("unused")
    final static Locale DEFAULT_LOCALE; @SuppressWarnings("unused")
    final static String PACKAGE; @SuppressWarnings("unused")
    final static ObjectFactory FACTORY; }
@Test public void testCreateDocument() { String transferXml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n" + "<feed xmlns=\"" + ImmobiliareItUtils.NAMESPACE + "\">\n" + " <version>" + ImmobiliareItUtils.VERSION.toReadableVersion() + "</version>\n" + "</feed>"; ImmobiliareItDocument doc; try { doc = ImmobiliareItUtils.createDocument(transferXml); Assert.assertNotNull( "Transfer was processed.", doc); Assert.assertTrue("Transfer was processed as TransferDocument.", doc instanceof ImmobiliareItDocument); } catch (Exception ex) { LOGGER.error("Test of TrovitUtils.createDocument failed!"); LOGGER.error("> " + ex.getLocalizedMessage(), ex); Assert.fail("Test of TrovitUtils.createDocument failed!"); } }