JAXBSupport { public static Marshaller createMarshaller(boolean includeProcessingInstruction) { Marshaller m; try { m = CONTEXT.createMarshaller(); m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); try { m.setProperty("com.sun.xml.bind.namespacePrefixMapper", PREFIX_MAPPER); } catch (PropertyException e) { LOGGER.debug("NamespacePrefixMapper could not be initialized!"); } if (!includeProcessingInstruction) { m.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE); } } catch (JAXBException e) { LOGGER.error("Could not instantiate marshaller", e); throw new IllegalStateException(e); } return m; }  static JAXBContext getContext(); static Marshaller createMarshaller(boolean includeProcessingInstruction); static Unmarshaller createUnmarshaller();  }
@Test public void createMarshaller() { assertNotNull(JAXBSupport.createMarshaller(true)); }