@Test
public void testS4() throws Exception {

    IAtomContainer mol = DefaultChemObjectBuilder.getInstance().newInstance(IAtomContainer.class);
    IAtom s = DefaultChemObjectBuilder.getInstance().newInstance(IAtom.class, "S");
    mol.addAtom(s);
    for (int i = 0; i < 6; i++) {
        IAtom f = DefaultChemObjectBuilder.getInstance().newInstance(IAtom.class, "F");
        mol.addAtom(f);
        IBond bond = DefaultChemObjectBuilder.getInstance().newInstance(IBond.class, s, f, IBond.Order.SINGLE);
        mol.addBond(bond);
    }
    StructGenMatcher matcher = new StructGenMatcher();
    IAtomType matched;
    matched = matcher.findMatchingAtomType(mol, mol.getAtom(0));
    assertAtomType(testedAtomTypes, "S4", matched);
    for (int i = 1; i < mol.getAtomCount(); i++) {
        matched = matcher.findMatchingAtomType(mol, mol.getAtom(i));
        assertAtomType(testedAtomTypes, "atom " + i + " failed to match", "F1", matched);
    }
}