@Test
public void testGetLength2D_IBond_HashMap() {

    Atom atom1 = new Atom("C");
    atom1.setPoint2d(new Point2d(-1, -1));
    Atom atom2 = new Atom("C");
    atom2.setPoint2d(new Point2d(1, 0));
    IBond bond = new Bond(atom1, atom2);
    IAtomContainer ac = DefaultChemObjectBuilder.getInstance().newInstance(IAtomContainer.class);
    ac.addAtom(atom1);
    ac.addAtom(atom2);
    Assert.assertEquals(GeometryTools.getLength2D(bond), 2.23, 0.01);
}