@Test
public void testViaFlags() throws Exception {

    IAtomContainer molecule = TestMoleculeFactory.makeBenzene();
    for (Iterator atoms = molecule.atoms().iterator(); atoms.hasNext();) {
        ((IAtom) atoms.next()).setFlag(CDKConstants.ISAROMATIC, true);
    }
    Assert.assertEquals(6, ((IntegerResult) descriptor.calculate(molecule).getValue()).intValue());
}