GaussianInputWriter extends DefaultChemObjectWriter { @Override public boolean accepts(Class<? extends IChemObject> classObject) { return IAtomContainer.class.isAssignableFrom(classObject); } GaussianInputWriter(Writer out);  GaussianInputWriter(OutputStream output);  GaussianInputWriter(); @Override IResourceFormat getFormat(); @Override void setWriter(Writer out); @Override void setWriter(OutputStream output); @Override void close(); @Override boolean accepts(Class<? extends IChemObject> classObject); @Override void write(IChemObject object); void writeMolecule(IAtomContainer mol);  }
@Test public void testAccepts() { GaussianInputWriter reader = new GaussianInputWriter(); Assert.assertTrue(reader.accepts(IAtomContainer.class)); }