### Question:
MDLRXNV2000Reader extends DefaultChemObjectReader { @Override public boolean accepts(Class<? extends IChemObject> classObject) { if (IChemFile.class.equals(classObject)) return true; if (IChemModel.class.equals(classObject)) return true; if (IReaction.class.equals(classObject)) return true; Class<?>[] interfaces = classObject.getInterfaces(); for (int i = 0; i < interfaces.length; i++) { if (IChemModel.class.equals(interfaces[i])) return true; if (IChemFile.class.equals(interfaces[i])) return true; if (IReaction.class.equals(interfaces[i])) return true; } Class superClass = classObject.getSuperclass(); if (superClass != null) return this.accepts(superClass); return false; } MDLRXNV2000Reader(Reader in);  MDLRXNV2000Reader(Reader in, Mode mode);  MDLRXNV2000Reader(InputStream input);  MDLRXNV2000Reader(InputStream input, Mode mode);  MDLRXNV2000Reader(); @Override IResourceFormat getFormat(); @Override void setReader(Reader input); @Override void setReader(InputStream input); @Override boolean accepts(Class<? extends IChemObject> classObject); @Override T read(T object); boolean accepts(IChemObject object); @Override void close();  }### Answer:
@Test public void testAccepts() { MDLRXNV2000Reader reader = new MDLRXNV2000Reader(); Assert.assertTrue(reader.accepts(ChemFile.class)); Assert.assertTrue(reader.accepts(ChemModel.class)); Assert.assertTrue(reader.accepts(Reaction.class)); }