@Test
public void testTranslateAllPositive_IAtomContainer_HashMap() {

    Atom atom1 = new Atom("C");
    atom1.setPoint2d(new Point2d(-1, -1));
    Atom atom2 = new Atom("C");
    atom2.setPoint2d(new Point2d(1, 0));
    IAtomContainer ac = DefaultChemObjectBuilder.getInstance().newInstance(IAtomContainer.class);
    ac.addAtom(atom1);
    ac.addAtom(atom2);
    GeometryTools.translateAllPositive(ac);
    Assert.assertEquals(atom1.getPoint2d().x, 0.0, 0.01);
    Assert.assertEquals(atom1.getPoint2d().y, 0.0, 0.01);
    Assert.assertEquals(atom2.getPoint2d().x, 2.0, 0.01);
    Assert.assertEquals(atom2.getPoint2d().y, 1.0, 0.01);
}