Index: trunk/test/unit/org/openstreetmap/josm/testutils/FakeOsmApi.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/testutils/FakeOsmApi.java	(revision 18829)
+++ trunk/test/unit/org/openstreetmap/josm/testutils/FakeOsmApi.java	(revision 18833)
@@ -110,11 +110,11 @@
     /**
      * Gets and caches an instance of this API.
-     * @return The API intance. Always the same object.
+     * @return The API instance. Always the same object.
      */
     public static synchronized FakeOsmApi getInstance() {
         if (instance == null) {
             instance = new FakeOsmApi();
-            cacheInstance(instance);
         }
+        cacheInstance(instance);
         return instance;
     }
