IO_JenaWriters { public static void resetJena() { if ( ! isWiredIn ) return ; isWiredIn = false ; RDFWriterFImpl.alternative(null); }  static void wireIntoJena(); static void resetJena(); @Deprecated static void registerForModelWrite(String name, Class<?> cls);  }
@Test public void testResetJena() { IO_Jena.wireIntoJena(); IO_Jena.resetJena(); RDFWriterF writerF = new RDFWriterFImpl(); assertNotEquals(RDFWriterRIOT.class, writerF.getWriter().getClass()); assertNotEquals(RDFWriterRIOT.class, writerF.getWriter("RDF/XML").getClass()); assertNotEquals(RDFWriterRIOT.class, writerF.getWriter("RDF/XML-ABBREV").getClass()); assertNotEquals(RDFWriterRIOT.class, writerF.getWriter("N-TRIPLE").getClass()); assertNotEquals(RDFWriterRIOT.class, writerF.getWriter("N-Triples").getClass()); assertNotEquals(RDFWriterRIOT.class, writerF.getWriter("N-TRIPLE").getClass()); assertNotEquals(RDFWriterRIOT.class, writerF.getWriter("N3").getClass()); assertNotEquals(RDFWriterRIOT.class, writerF.getWriter("TURTLE").getClass()); assertNotEquals(RDFWriterRIOT.class, writerF.getWriter("Turtle").getClass()); assertNotEquals(RDFWriterRIOT.class, writerF.getWriter("TTL").getClass()); try { writerF.getWriter("NT"); fail("Exception expected") ; } catch (NoWriterForLangException ex) {} try { writerF.getWriter("RDF/JSON") ; fail("Exception expected") ; } catch (NoWriterForLangException ex) {} try { writerF.getWriter("RDFJSON"); fail("Exception expected") ; } catch (NoWriterForLangException ex) {} IO_Jena.wireIntoJena(); }