PCCompoundXMLReader extends DefaultChemObjectReader { @Override public boolean accepts(Class<? extends IChemObject> classObject) { return IAtomContainer.class.isAssignableFrom(classObject); } PCCompoundXMLReader(Reader input);  PCCompoundXMLReader(InputStream input);  PCCompoundXMLReader(); @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();  }
@Test public void testAccepts() throws Exception { PCCompoundXMLReader reader = new PCCompoundXMLReader(); Assert.assertTrue(reader.accepts(AtomContainer.class)); }