@Test
public void testTetraDehydroDecaline() throws Exception {

    boolean isAromatic = false;
    //boolean testResults[] = {true, false, false};
    SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
    IAtomContainer mol = sp.parseSmiles("C1CCCc2c1cccc2");
    AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(mol);
    Assert.assertTrue("Expected the molecule to be aromatic.",
            DoubleBondAcceptingAromaticityDetector.detectAromaticity(mol));
    IRingSet rs = (new AllRingsFinder()).findAllRings(mol);
    RingSetManipulator.markAromaticRings(rs);
    IRing r = null;
    int aromacount = 0;
    Iterator<IAtomContainer> rings = rs.atomContainers().iterator();
    while (rings.hasNext()) {
        r = (IRing) rings.next();
        isAromatic = r.getFlag(CDKConstants.ISAROMATIC);
        if (isAromatic) aromacount++;
    }
    Assert.assertEquals(1, aromacount);
}