@Test
public void testRotate_IAtomContainer_Point2d_double() {

    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.rotate(ac, new Point2d(0, 0), Math.PI / 2);
    Assert.assertEquals(atom1.getPoint2d().x, -1, .2);
    Assert.assertEquals(atom1.getPoint2d().y, 1, .2);
    Assert.assertEquals(atom2.getPoint2d().x, 0, .2);
    Assert.assertEquals(atom2.getPoint2d().y, 1, .2);
    atom2.setPoint2d(new Point2d(0, 0));
    GeometryTools.rotate(ac, new Point2d(0, 0), Math.PI);
    Assert.assertFalse(Double.isNaN(atom2.getPoint2d().x));
    Assert.assertFalse(Double.isNaN(atom2.getPoint2d().y));
}