@Test
public void testPartitioning() throws Exception {

    String smiles = "";
    IAtomContainer molecule = new AtomContainer();
    SmilesGenerator sg = new SmilesGenerator();
    Atom sodium = new Atom("Na");
    sodium.setFormalCharge(+1);
    Atom hydroxyl = new Atom("O");
    hydroxyl.setImplicitHydrogenCount(1);
    hydroxyl.setFormalCharge(-1);
    molecule.addAtom(sodium);
    molecule.addAtom(hydroxyl);
    addImplicitHydrogens(molecule);
    smiles = sg.create(molecule);
    Assert.assertTrue(smiles.indexOf(".") != -1);
}