@Test
public void testGetMinMax_IAtomContainer() {

    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);
    double[] minmax = GeometryTools.getMinMax(ac);
    Assert.assertEquals(minmax[0], 1d, .1);
    Assert.assertEquals(minmax[1], 0d, .1);
    Assert.assertEquals(minmax[2], 1d, .1);
    Assert.assertEquals(minmax[3], 1d, .1);
}