@Test
public void testGetRectangle2D_IAtomContainer() {

    Atom atom1 = new Atom("C");
    atom1.setPoint2d(new Point2d(2, 2));
    Atom atom2 = new Atom("C");
    atom2.setPoint2d(new Point2d(5, 1));
    IAtomContainer container = new AtomContainer();
    container.addAtom(atom1);
    container.addAtom(atom2);
    Rectangle2D rectangle = GeometryTools.getRectangle2D(container);
    Assert.assertEquals(2.0, rectangle.getMinX(), 0.0);
    Assert.assertEquals(3.0, rectangle.getWidth(), 0.0);
    Assert.assertEquals(1.0, rectangle.getMinY(), 0.0);
    Assert.assertEquals(1.0, rectangle.getHeight(), 0.0);
}