@Test
//(timeout=5000)
public void testTermination() {

    int ringSize = 7;
    IAtomContainer ring = new AtomContainer();
    for (int i = 0; i < ringSize; i++) {
        ring.addAtom(new Atom("C"));
    }
    for (int j = 0; j < ringSize - 1; j++) {
        ring.addBond(j, j + 1, IBond.Order.SINGLE);
    }
    ring.addBond(ringSize - 1, 0, IBond.Order.SINGLE);
    ring.addAtom(new Atom("Cl"));
    ring.addAtom(new Atom("F"));
    ring.addBond(0, ringSize, IBond.Order.SINGLE);
    ring.addBond(0, ringSize + 1, IBond.Order.SINGLE);
    ring.addAtom(new Atom("O"));
    ring.addBond(1, ringSize + 2, IBond.Order.SINGLE);
    IAtom[] atoms = new IAtom[]{ring.getAtom(ringSize), ring.getAtom(ringSize + 1), ring.getAtom(ringSize - 1),
            ring.getAtom(1)};
    ITetrahedralChirality stereoCenter = new TetrahedralChirality(ring.getAtom(0), atoms, Stereo.ANTI_CLOCKWISE);
    ring.addStereoElement(stereoCenter);
    SmilesGenerator generator = new SmilesGenerator();
    CIPTool.getCIPChirality(ring, stereoCenter);
}