@Test
public void testFuran() throws Exception {

    SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
    IAtomContainer mol = sp.parseSmiles("c1cocc1");
    AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(mol);
    Assert.assertTrue("Molecule is not detected aromatic",
            DoubleBondAcceptingAromaticityDetector.detectAromaticity(mol));
    IRingSet ringset = (new SSSRFinder(mol)).findSSSR();
    int numberOfAromaticRings = 0;
    RingSetManipulator.markAromaticRings(ringset);
    for (int i = 0; i < ringset.getAtomContainerCount(); i++) {
        if (ringset.getAtomContainer(i).getFlag(CDKConstants.ISAROMATIC)) numberOfAromaticRings++;
    }
    Assert.assertEquals(1, numberOfAromaticRings);
}