Index: /applications/editors/josm/plugins/turnrestrictions/test/unit/org/openstreetmap/josm/plugins/turnrestrictions/TurnRestrictionBuilderTest.groovy
===================================================================
--- /applications/editors/josm/plugins/turnrestrictions/test/unit/org/openstreetmap/josm/plugins/turnrestrictions/TurnRestrictionBuilderTest.groovy	(revision 32360)
+++ /applications/editors/josm/plugins/turnrestrictions/test/unit/org/openstreetmap/josm/plugins/turnrestrictions/TurnRestrictionBuilderTest.groovy	(revision 32361)
@@ -14,9 +14,13 @@
 import org.openstreetmap.josm.data.coor.LatLon;
 import static org.openstreetmap.josm.plugins.turnrestrictions.TurnRestrictionBuilder.*
-import org.openstreetmap.josm.plugins.turnrestrictions.editor.TurnRestrictionType;
+import org.openstreetmap.josm.plugins.turnrestrictions.editor.TurnRestrictionType
+import org.openstreetmap.josm.testutils.JOSMTestRules;;
 
 class TurnRestrictionBuilderTest{
 	
-	def TurnRestrictionBuilder builder;
+    @Rule
+    public JOSMTestRules rules = new JOSMTestRules().preferences();
+
+    def TurnRestrictionBuilder builder = new TurnRestrictionBuilder();
 
 	def boolean hasExactlyOneMemberWithRole(Relation r, String role ){
@@ -35,10 +39,4 @@
 	}
 	
-	@Before
-	public void setUp() {
-		JOSMFixture.createUnitTestFixture().init()
-		builder = new TurnRestrictionBuilder()
-	}
-
 	/**
 	 * Selection consist of one way and the start node of the way ->
