Index: trunk/test/functional/org/openstreetmap/josm/gui/mappaint/StyleCacheTest.java
===================================================================
--- trunk/test/functional/org/openstreetmap/josm/gui/mappaint/StyleCacheTest.java	(revision 11776)
+++ trunk/test/functional/org/openstreetmap/josm/gui/mappaint/StyleCacheTest.java	(revision 11777)
@@ -53,9 +53,9 @@
     @Rule
     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
-    public JOSMTestRules test = new JOSMTestRules().preferences().platform().projection();
+    public JOSMTestRules test = new JOSMTestRules().preferences().platform().projection().mapStyles();
 
     /**
      * Load the test data that is required.
-     * @throws Exception
+     * @throws Exception It an error occurred during load.
      */
     @BeforeClass
@@ -96,5 +96,4 @@
         nc = new MapView(Main.getLayerManager(), null);
         nc.setBounds(0, 0, IMG_WIDTH, IMG_HEIGHT);
-        MapPaintStyles.readFromPreferences();
     }
 
