CasaItUtils { public synchronized static JAXBContext getContext() throws JAXBException { if (JAXB == null) initContext(Thread.currentThread().getContextClassLoader()); return JAXB; } private  CasaItUtils(); static CasaItDocument createDocument(InputStream input); static CasaItDocument createDocument(File xmlFile); static CasaItDocument createDocument(String xmlString); static CasaItDocument createDocument(Document doc); @SuppressWarnings("unused") static Marshaller createMarshaller(); @SuppressWarnings("Duplicates") static Marshaller createMarshaller(String encoding, boolean formatted); static Unmarshaller createUnmarshaller(); synchronized static JAXBContext getContext(); synchronized static ObjectFactory getFactory(); synchronized static void initContext(ClassLoader classloader); static BigDecimal parseDouble(String value); static String printDouble(BigDecimal value); @SuppressWarnings("unused")
    final static String NAMESPACE; @SuppressWarnings("unused")
    final static String PACKAGE; @SuppressWarnings("unused")
    final static ObjectFactory FACTORY; }
@Test public void testGetContext() { try { Assert.assertNotNull( "JAXB context must be creatable.", CasaItUtils.getContext()); } catch (Exception ex) { LOGGER.error("Test of CasaITUtils.getContext failed!"); LOGGER.error("> " + ex.getLocalizedMessage(), ex); Assert.fail("Test of CasaITUtils.getContext failed!"); } }