@Test
public void testN3cyanide() throws Exception {

    IAtomContainer mol = DefaultChemObjectBuilder.getInstance().newInstance(IAtomContainer.class);
    IAtom n = DefaultChemObjectBuilder.getInstance().newInstance(IAtom.class, "N");
    IAtom c1 = DefaultChemObjectBuilder.getInstance().newInstance(IAtom.class, "C");
    IAtom c2 = DefaultChemObjectBuilder.getInstance().newInstance(IAtom.class, "C");
    c1.setImplicitHydrogenCount(0);
    c2.setImplicitHydrogenCount(3);
    IBond b1 = DefaultChemObjectBuilder.getInstance().newInstance(IBond.class, n, c1, IBond.Order.TRIPLE);
    IBond b2 = DefaultChemObjectBuilder.getInstance().newInstance(IBond.class, c1, c2, IBond.Order.SINGLE);
    mol.addAtom(n);
    mol.addAtom(c1);
    mol.addAtom(c2);
    mol.addBond(b1);
    mol.addBond(b2);
    StructGenMatcher matcher = new StructGenMatcher();
    IAtomType matched;
    matched = matcher.findMatchingAtomType(mol, mol.getAtom(0));
    assertAtomType(testedAtomTypes, "N3", matched);
    matched = matcher.findMatchingAtomType(mol, mol.getAtom(1));
    assertAtomType(testedAtomTypes, "C4", matched);
    matched = matcher.findMatchingAtomType(mol, mol.getAtom(2));
    assertAtomType(testedAtomTypes, "C4", matched);
}