IO_JenaReaders { @SuppressWarnings("deprecation") public static void resetJena() { if ( ! isWiredIn ) return ; isWiredIn = false ; RDFReaderFImpl.alternative(null); FileManager.setGlobalFileManager(coreFileManager) ; }  @SuppressWarnings("deprecation") static void wireIntoJena(); @SuppressWarnings("deprecation") static void resetJena(); @Deprecated static void registerForModelRead(String name, Class<? > cls);  }
@Test public void resetJena() { IO_Jena.wireIntoJena(); IO_Jena.resetJena(); RDFReaderF readerF = new RDFReaderFImpl(); assertNotEquals(RDFReaderRIOT.class, readerF.getReader().getClass()); assertNotEquals(RDFReaderRIOT.class, readerF.getReader("RDF/XML").getClass()); assertNotEquals(RDFReaderRIOT.class, readerF.getReader("RDF/XML-ABBREV").getClass()); assertNotEquals(RDFReaderRIOT.class, readerF.getReader("N-TRIPLES").getClass()); assertNotEquals(RDFReaderRIOT.class, readerF.getReader("N-Triples").getClass()); assertNotEquals(RDFReaderRIOT.class, readerF.getReader("N-TRIPLE").getClass()); assertNotEquals(RDFReaderRIOT.class, readerF.getReader("N3").getClass()); assertNotEquals(RDFReaderRIOT.class, readerF.getReader("TURTLE").getClass()); assertNotEquals(RDFReaderRIOT.class, readerF.getReader("Turtle").getClass()); assertNotEquals(RDFReaderRIOT.class, readerF.getReader("TTL").getClass()); try { readerF.getReader("NT") ; fail("Exception expected") ; } catch (NoReaderForLangException e) {} try { readerF.getReader("JSON_LD") ; fail("Exception expected") ; } catch (NoReaderForLangException e) {} try { readerF.getReader("RDF/JSON"); fail("Exception expected") ; } catch (NoReaderForLangException e) {} IO_Jena.wireIntoJena(); }