[grid] Fixing mock in DriverServiceSessionFactoryTest
import org.openqa.selenium.grid.node.ActiveSession;
import org.openqa.selenium.internal.Either;
import org.openqa.selenium.remote.Dialect;
+import org.openqa.selenium.remote.http.ClientConfig;
import org.openqa.selenium.remote.http.HttpClient;
import org.openqa.selenium.remote.http.HttpRequest;
import org.openqa.selenium.remote.http.HttpResponse;
@@ -149,7 +150,7 @@ public void shouldInstantiateSessionIfEverythingIsOK() throws IOException {
when(httpClient.execute(any(HttpRequest.class))).thenReturn(
new HttpResponse().setStatus(200).setContent(() -> new ByteArrayInputStream(
"{ \"value\": { \"sessionId\": \"1\", \"capabilities\": {} } }".getBytes())));
- when(clientFactory.createClient(any(URL.class))).thenReturn(httpClient);
+ when(clientFactory.createClient(any(ClientConfig.class))).thenReturn(httpClient);
DriverServiceSessionFactory factory = factoryFor("chrome", builder);
