diff --git a/src/test/java/io/github/bonigarcia/wdm/test/watcher/DisableCspFirefoxTest.java b/src/test/java/io/github/bonigarcia/wdm/test/watcher/DisableCspFirefoxTest.java
index <HASH>..<HASH> 100644
--- a/src/test/java/io/github/bonigarcia/wdm/test/watcher/DisableCspFirefoxTest.java
+++ b/src/test/java/io/github/bonigarcia/wdm/test/watcher/DisableCspFirefoxTest.java
@@ -36,12 +36,12 @@ class DisableCspFirefoxTest {
 
     static final Logger log = getLogger(lookup().lookupClass());
 
-    WebDriverManager wdm;
+    WebDriverManager wdm = WebDriverManager.firefoxdriver().watch()
+            .disableCsp();
     WebDriver driver;
 
     @BeforeEach
     void setup() {
-        wdm = WebDriverManager.firefoxdriver().watch().disableCsp();
         driver = wdm.create();
     }
Change logic for creating wdm in watch test