@Test
public void testDetectAromaticity_IAtomContainer() throws Exception {

    IAtomContainer mol = makeAromaticMolecule();
    AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(mol);
    boolean isAromatic = DoubleBondAcceptingAromaticityDetector.detectAromaticity(mol);
    Assert.assertTrue("Molecule is expected to be marked aromatic!", isAromatic);
    int numberOfAromaticAtoms = 0;
    for (int i = 0; i < mol.getAtomCount(); i++) {
        if (((IAtom) mol.getAtom(i)).getFlag(CDKConstants.ISAROMATIC)) numberOfAromaticAtoms++;
    }
    Assert.assertEquals(6, numberOfAromaticAtoms);
    int numberOfAromaticBonds = 0;
    for (int i = 0; i < mol.getBondCount(); i++) {
        if (((IBond) mol.getBond(i)).getFlag(CDKConstants.ISAROMATIC)) numberOfAromaticBonds++;
    }
    Assert.assertEquals(6, numberOfAromaticBonds);
}