@Test
public void testIndoleAgainstItself() throws Exception {

    IAtomContainer indole = TestMoleculeFactory.makeIndole();
    addImplicitHydrogens(indole);
    AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(indole);
    Aromaticity.cdkLegacy().apply(indole);
    SmilesGenerator generator = new SmilesGenerator().aromatic();
    String indoleSmiles = generator.create(indole);
    SmilesParser smilesParser = new SmilesParser(DefaultChemObjectBuilder.getInstance());
    indole = smilesParser.parseSmiles(indoleSmiles);
    SMARTSQueryTool querytool = new SMARTSQueryTool(indoleSmiles, DefaultChemObjectBuilder.getInstance());
    assertTrue(querytool.matches(indole));
}