Index: trunk/test/unit/org/openstreetmap/josm/data/osm/QuadBucketsTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/data/osm/QuadBucketsTest.java	(revision 16533)
+++ trunk/test/unit/org/openstreetmap/josm/data/osm/QuadBucketsTest.java	(revision 16543)
@@ -53,10 +53,10 @@
         for (OsmPrimitive o: allNodes) {
             ds.removePrimitive(o);
-            checkIterator(nodes, --expectedCount);
+            Assert.assertEquals(--expectedCount, nodes.size());
         }
         expectedCount = allWays.size();
         for (OsmPrimitive o: allWays) {
             ds.removePrimitive(o);
-            checkIterator(ways, --expectedCount);
+            Assert.assertEquals(--expectedCount, ways.size());
         }
         for (OsmPrimitive o: allRelations) {
@@ -66,14 +66,4 @@
         Assert.assertTrue(ways.isEmpty());
         Assert.assertTrue(relations.isEmpty());
-    }
-
-    private void checkIterator(Collection<? extends OsmPrimitive> col, int expectedCount) {
-        int count = 0;
-        Iterator<? extends OsmPrimitive> it = col.iterator();
-        while (it.hasNext()) {
-            count++;
-            it.next();
-        }
-        Assert.assertEquals(expectedCount, count);
     }
 
