Index: trunk/test/unit/org/openstreetmap/josm/data/BoundsTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/data/BoundsTest.java	(revision 10906)
+++ trunk/test/unit/org/openstreetmap/josm/data/BoundsTest.java	(revision 10910)
@@ -5,4 +5,6 @@
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
+
+import java.awt.geom.Rectangle2D;
 
 import org.junit.Test;
@@ -47,3 +49,44 @@
         assertEquals(b3, new Bounds(0, 0, 90, -170));
     }
+
+    private static void doTestConstructorNominal(Bounds b) {
+        double eps = 1e-7;
+        assertEquals(1d, b.getMinLat(), eps);
+        assertEquals(2d, b.getMinLon(), eps);
+        assertEquals(3d, b.getMaxLat(), eps);
+        assertEquals(4d, b.getMaxLon(), eps);
+    }
+
+    private static void doTestConstructorPoint(Bounds b) {
+        double eps = 1e-7;
+        assertEquals(1d, b.getMinLat(), eps);
+        assertEquals(2d, b.getMinLon(), eps);
+        assertEquals(1d, b.getMaxLat(), eps);
+        assertEquals(2d, b.getMaxLon(), eps);
+    }
+
+    /**
+     * Unit tests for {@link Bounds#Bounds} - nominal cases.
+     */
+    @Test
+    public void testConstructorNominalCases() {
+        doTestConstructorNominal(new Bounds(new LatLon(1d, 2d), new LatLon(3d, 4d)));
+        doTestConstructorNominal(new Bounds(new LatLon(1d, 2d), new LatLon(3d, 4d), true));
+        doTestConstructorNominal(new Bounds(1d, 2d, 3d, 4d));
+        doTestConstructorNominal(new Bounds(1d, 2d, 3d, 4d, true));
+        doTestConstructorNominal(new Bounds(new double[]{1d, 2d, 3d, 4d}));
+        doTestConstructorNominal(new Bounds(new double[]{1d, 2d, 3d, 4d}, true));
+        doTestConstructorNominal(new Bounds(new Bounds(1d, 2d, 3d, 4d)));
+        doTestConstructorNominal(new Bounds(new Rectangle2D.Double(2d, 1d, 2d, 2d)));
+    }
+
+    /**
+     * Unit tests for {@link Bounds#Bounds} - single point cases.
+     */
+    @Test
+    public void testConstructorSinglePointCases() {
+        doTestConstructorPoint(new Bounds(new LatLon(1d, 2d)));
+        doTestConstructorPoint(new Bounds(new LatLon(1d, 2d), true));
+        doTestConstructorPoint(new Bounds(1d, 2d, true));
+    }
 }
