@Test
public void testReading() throws Exception {

    String filename = "data/asn/pubchem/sid577309.xml";
    logger.info("Testing: " + filename);
    InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename);
    PCSubstanceXMLReader reader = new PCSubstanceXMLReader(ins);
    IAtomContainer molecule = (IAtomContainer) reader.read(new AtomContainer());
    Assert.assertNotNull(molecule);
    // check atom stuff
    Assert.assertEquals(19, molecule.getAtomCount());
    Assert.assertTrue(molecule.getAtom(0) instanceof IPseudoAtom);
    // check bond stuff
    Assert.assertEquals(19, molecule.getBondCount());
    Assert.assertNotNull(molecule.getBond(3));
}