Index: applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/cache/MapillaryCacheTest.java
===================================================================
--- applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/cache/MapillaryCacheTest.java	(revision 32922)
+++ applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/cache/MapillaryCacheTest.java	(revision 32923)
@@ -6,10 +6,23 @@
 import static org.junit.Assert.assertNotEquals;
 
+import java.io.File;
+import java.io.IOException;
+
+import org.junit.Before;
 import org.junit.Test;
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.data.cache.JCSCacheManager;
 import org.openstreetmap.josm.plugins.mapillary.AbstractTest;
+import org.openstreetmap.josm.plugins.mapillary.MapillaryPlugin;
 import org.openstreetmap.josm.plugins.mapillary.cache.MapillaryCache.Type;
 
 public class MapillaryCacheTest extends AbstractTest {
 
+  @Before
+  public void setUp() throws IOException {
+    MapillaryPlugin.cache = JCSCacheManager.getCache("mapillary", 10, 10000, 
+           new File(Main.pref.getPluginsDirectory(), "mapillary").getPath() + "/cache/");
+  }
+  
   @Test
   public void test() {
@@ -28,4 +41,3 @@
     assertEquals(null, cache.getUrl());
   }
-
 }
