Index: trunk/src/org/openstreetmap/josm/gui/mappaint/StyleCache.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/mappaint/StyleCache.java	(revision 9768)
+++ trunk/src/org/openstreetmap/josm/gui/mappaint/StyleCache.java	(revision 9770)
@@ -82,3 +82,11 @@
         return internPool.putUnique(this);
     }
+
+    /**
+     * Get the size of the intern pool. Only for tests!
+     * @return size of the intern pool
+     */
+    public static int getInternPoolSize() {
+        return internPool.size();
+    }
 }
