@Test
public void testBug791091() throws Exception {

    String smiles = "";
    IAtomContainer molecule = new AtomContainer();
    SmilesGenerator sg = new SmilesGenerator();
    molecule.addAtom(new Atom("C"));
    molecule.addAtom(new Atom("C"));
    molecule.addAtom(new Atom("C"));
    molecule.addAtom(new Atom("C"));
    molecule.addAtom(new Atom("N"));
    molecule.addBond(0, 1, IBond.Order.SINGLE);
    molecule.addBond(1, 2, IBond.Order.SINGLE);
    molecule.addBond(2, 4, IBond.Order.SINGLE);
    molecule.addBond(4, 0, IBond.Order.SINGLE);
    molecule.addBond(4, 3, IBond.Order.SINGLE);
    fixCarbonHCount(molecule);
    smiles = sg.create(molecule);
    Assert.assertEquals("C1CCN1C", smiles);
}