Index: trunk/test/unit/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJobTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJobTest.java	(revision 19493)
+++ trunk/test/unit/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJobTest.java	(revision 19494)
@@ -107,4 +107,7 @@
     @BeforeEach
     void clearCache() {
+        /* ensure we have a cache */
+        getCache().get("init");
+        /* clear it */
         getCache().clear();
     }
Index: trunk/test/unit/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJobTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJobTest.java	(revision 19493)
+++ trunk/test/unit/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJobTest.java	(revision 19494)
@@ -47,4 +47,7 @@
     @BeforeEach
     void clearCache() {
+        /* ensure we have a cache */
+        getCache().get("init");
+        /* clear it */
         getCache().clear();
     }
