@Test
public void ionicBondsInAlCl3() throws Exception {

    SmilesParser sp = new SmilesParser(SilentChemObjectBuilder.getInstance());
    IAtomContainer mol = sp.parseSmiles("[Al+3].[Cl-].[Cl-].[Cl-]");
    layout(mol);
    for (IAtom atom : mol.atoms())
        assertNotNull(atom.getPoint2d());
    assertThat(mol.getAtom(0).getPoint2d().distance(mol.getAtom(1).getPoint2d()),
               closeTo(1.5*SDG.getBondLength(), 0.001));
    assertThat(mol.getAtom(0).getPoint2d().distance(mol.getAtom(2).getPoint2d()),
               closeTo(1.5*SDG.getBondLength(), 0.001));
    assertThat(mol.getAtom(0).getPoint2d().distance(mol.getAtom(3).getPoint2d()),
               closeTo(1.5*SDG.getBondLength(), 0.001));
}