@Test
public void testAromaticity() throws Exception {

    setDescriptor(BCUTDescriptor.class);
    String smiles1 = "c1ccccc1";
    String smiles2 = "C1=CC=CC=C1";
    SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
    IAtomContainer mol1 = sp.parseSmiles(smiles1);
    IAtomContainer mol2 = sp.parseSmiles(smiles2);
    addExplicitHydrogens(mol1);
    addExplicitHydrogens(mol2);
    AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(mol1);
    AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(mol2);
    Aromaticity.cdkLegacy().apply(mol1);
    Aromaticity.cdkLegacy().apply(mol2);
    DoubleArrayResult result1 = (DoubleArrayResult) descriptor.calculate(mol1).getValue();
    DoubleArrayResult result2 = (DoubleArrayResult) descriptor.calculate(mol2).getValue();
    Assert.assertEquals(result1.length(), result2.length());
    for (int i = 0; i < result1.length(); i++) {
        Assert.assertEquals("element " + i + " does not match", result1.get(i), result2.get(i), 0.01);
    }
}