@Test
@Category(SlowTest.class)
public void testAllyl() throws Exception {

    IAtomContainer molecule = builder.newInstance(IAtomContainer.class);
    molecule.addAtom(builder.newInstance(IAtom.class, "C"));
    molecule.addAtom(builder.newInstance(IAtom.class, "C"));
    molecule.addAtom(builder.newInstance(IAtom.class, "C"));
    molecule.addAtom(builder.newInstance(IAtom.class, "Cl")); // to remove symmetry :)
    molecule.addBond(0, 1, IBond.Order.SINGLE);
    molecule.addBond(1, 2, IBond.Order.DOUBLE);
    molecule.addBond(2, 3, IBond.Order.SINGLE);
    molecule.getAtom(0).setFormalCharge(+1);
    addExplicitHydrogens(molecule);
    Assert.assertEquals(8, molecule.getAtomCount());
    AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(molecule);
    lpcheck.saturate(molecule);
    StructureResonanceGenerator gRI = new StructureResonanceGenerator();
    IAtomContainerSet resonanceStructures = gRI.getStructures(molecule);
    Assert.assertEquals(4, resonanceStructures.getAtomContainerCount());
}