@Test
public void chargedAtom() throws Exception {

    IAtom a = new Atom("C");
    a.setImplicitHydrogenCount(0);
    for (int chg = -10; chg < 10; chg++) {
        a.setFormalCharge(chg);
        assertThat(new CDKToBeam().toBeamAtom(a).charge(), is(chg));
    }
}