@Test
public void testChargeWithProtonExplicit() throws ClassNotFoundException, CDKException, java.lang.Exception {

    SmilesParser sp = new SmilesParser(builder);
    IAtomContainer mol = sp.parseSmiles("[H]C([H])=C([H])[C+]([H])[H]");
    AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(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(3, ac1.getAtomCount());
    Assert.assertEquals(2, ac1.getBondCount());
    for (int i = 0; i < ac1.getAtomCount(); i++) {
        Assert.assertTrue(mol.contains(ac1.getAtom(i)));
    }
    for (int i = 0; i < ac1.getBondCount(); i++) {
        Assert.assertTrue(mol.contains(ac1.getBond(i)));
    }
}