### Question:
SMILESReader extends DefaultChemObjectReader { @Override public boolean accepts(Class<? extends IChemObject> classObject) { if (IAtomContainerSet.class.equals(classObject)) return true; if (IChemFile.class.equals(classObject)) return true; Class<?>[] interfaces = classObject.getInterfaces(); for (Class<?> anInterface : interfaces) { if (IChemFile.class.equals(anInterface)) return true; if (IAtomContainerSet.class.equals(anInterface)) return true; } Class superClass = classObject.getSuperclass(); if (superClass != null) return this.accepts(superClass); return false; } SMILESReader(Reader input);  SMILESReader(InputStream input);  SMILESReader(); @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); @Override void close();  }### Answer:
@Test public void testAccepts() { SMILESReader reader = new SMILESReader(); Assert.assertTrue(reader.accepts(ChemFile.class)); Assert.assertTrue(reader.accepts(AtomContainerSet.class)); }