@Test
public void test3Aminomethane_cation() throws Exception {

    IAtomContainer mol = builder.newInstance(IAtomContainer.class);
    mol.addAtom(builder.newInstance(IAtom.class, "N"));
    mol.addAtom(builder.newInstance(IAtom.class, "C"));
    mol.addBond(0, 1, Order.SINGLE);
    mol.addAtom(builder.newInstance(IAtom.class, "C"));
    mol.addBond(0, 2, Order.SINGLE);
    mol.addAtom(builder.newInstance(IAtom.class, "C"));
    mol.addBond(0, 3, Order.SINGLE);
    mol.getAtom(3).setFormalCharge(+1);
    mol.addAtom(builder.newInstance(IAtom.class, "N"));
    mol.addBond(3, 4, Order.SINGLE);
    mol.addAtom(builder.newInstance(IAtom.class, "C"));
    mol.addBond(4, 5, Order.SINGLE);
    mol.addAtom(builder.newInstance(IAtom.class, "C"));
    mol.addBond(4, 6, Order.SINGLE);
    mol.addAtom(builder.newInstance(IAtom.class, "N"));
    mol.addBond(3, 7, Order.SINGLE);
    mol.addAtom(builder.newInstance(IAtom.class, "C"));
    mol.addBond(7, 8, Order.SINGLE);
    mol.addAtom(builder.newInstance(IAtom.class, "C"));
    mol.addBond(7, 8, Order.SINGLE);
    AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(mol);
    addImplicitHydrogens(mol);
    lpcheck.saturate(mol);
    Aromaticity.cdkLegacy().apply(mol);
    IAtomContainerSet acSet = ConjugatedPiSystemsDetector.detect(mol);
    Assert.assertEquals(1, acSet.getAtomContainerCount());
    IAtomContainer ac1 = acSet.getAtomContainer(0);
    Assert.assertEquals(4, ac1.getAtomCount());
    Assert.assertEquals(3, ac1.getBondCount());
}