@Test
public void testDifferentRingFinders() throws Exception {

    IFingerprinter fingerprinter = new ExtendedFingerprinter();
    IAtomContainer ac1 = new AtomContainer();
    Atom atom1 = new Atom("C");
    Atom atom2 = new Atom("C");
    Atom atom3 = new Atom("C");
    Atom atom4 = new Atom("C");
    Atom atom5 = new Atom("C");
    Atom atom6 = new Atom("C");
    ac1.addAtom(atom1);
    ac1.addAtom(atom2);
    ac1.addAtom(atom3);
    ac1.addAtom(atom4);
    ac1.addAtom(atom5);
    ac1.addAtom(atom6);
    Bond bond1 = new Bond(atom1, atom2);
    Bond bond2 = new Bond(atom2, atom3);
    Bond bond3 = new Bond(atom3, atom4);
    Bond bond4 = new Bond(atom4, atom5);
    Bond bond5 = new Bond(atom5, atom6);
    Bond bond6 = new Bond(atom6, atom1);
    ac1.addBond(bond1);
    ac1.addBond(bond2);
    ac1.addBond(bond3);
    ac1.addBond(bond4);
    ac1.addBond(bond5);
    ac1.addBond(bond6);
    IAtomContainer ac2 = new AtomContainer();
    ac2.addAtom(atom1);
    ac2.addAtom(atom2);
    ac2.addAtom(atom3);
    ac2.addAtom(atom4);
    ac2.addAtom(atom5);
    ac2.addAtom(atom6);
    Bond bond7 = new Bond(atom3, atom1);
    ac2.addBond(bond1);
    ac2.addBond(bond2);
    ac2.addBond(bond3);
    ac2.addBond(bond4);
    ac2.addBond(bond5);
    ac2.addBond(bond6);
    ac2.addBond(bond7);
    BitSet bs = fingerprinter.getBitFingerprint(ac1).asBitSet();
    BitSet bs1 = fingerprinter.getBitFingerprint(ac2).asBitSet();
    Assert.assertTrue(FingerprinterTool.isSubset(bs1, bs));
    Assert.assertFalse(FingerprinterTool.isSubset(bs, bs1));
}