@Test
public void testGetStructures_IAtomContainer() throws Exception {

    IAtomContainer molecule = builder.newInstance(IAtomContainer.class);
    molecule.addAtom(new Atom("C"));
    molecule.addAtom(new Atom("C"));
    molecule.addBond(0, 1, IBond.Order.SINGLE);
    molecule.addAtom(new Atom("C"));
    molecule.addBond(1, 2, IBond.Order.DOUBLE);
    molecule.addAtom(new Atom("C"));
    molecule.getAtom(3).setFormalCharge(+1);
    molecule.addBond(2, 3, IBond.Order.SINGLE);
    molecule.addAtom(new Atom("C"));
    molecule.addBond(3, 4, IBond.Order.SINGLE);
    molecule.addAtom(new Atom("C"));
    molecule.addBond(4, 5, IBond.Order.SINGLE);
    molecule.addAtom(new Atom("C"));
    molecule.addBond(5, 6, IBond.Order.DOUBLE);
    molecule.addAtom(new Atom("C"));
    molecule.addBond(6, 7, IBond.Order.SINGLE);
    molecule.getAtom(7).setFormalCharge(+1);
    addExplicitHydrogens(molecule);
    StructureResonanceGenerator sRG = new StructureResonanceGenerator();
    IAtomContainerSet setOfMolecules = sRG.getStructures(molecule);
    Assert.assertEquals(4, setOfMolecules.getAtomContainerCount());
}