title: Getting error when trying to run a test with TestNG and WebDriverManager
body: <p>I'm getting this error when trying to execute a test using TestNG and WebDriverManager. The dependency I'm using is the one mentioned in <a href="https://github.com/bonigarcia/webdrivermanager-examples" rel="nofollow noreferrer">https://github.com/bonigarcia/webdrivermanager-examples</a> for Maven, and the version of TestNG is 6.14.3.</p>
  
  <p>My code is this simple:</p>
  
  <pre><code>private WebDriver driver;
  
  @BeforeClass
  public void setupClass() {
      WebDriverManager.chromedriver().setup();
      driver = new ChromeDriver();
  }
  
  @AfterTest
  public void teardown() {
      if (driver != null) {
          driver.quit();
      }
  }
  
  @Test
  public void test() {
      // Your test code here
  }
  </code></pre>
  
  <p>And I get this error:</p>
  
  <pre><code>[RemoteTestNG] detected TestNG version 6.14.3
  FAILED CONFIGURATION: @BeforeClass setupClass
  java.lang.NoSuchMethodError: org.apache.http.impl.client.HttpClientBuilder.setConnectionManagerShared(Z)Lorg/apache/http/impl/client/HttpClientBuilder;
  at io.github.bonigarcia.wdm.HttpClient.&lt;init&gt;(HttpClient.java:97)
  at io.github.bonigarcia.wdm.HttpClient.&lt;init&gt;(HttpClient.java:91)
  at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:407)
  at io.github.bonigarcia.wdm.WebDriverManager.setup(WebDriverManager.java:215)
  at com.cuballama.automation.framework.Prueba.setupClass(Prueba.java:45)
  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.base/java.lang.reflect.Method.invoke(Method.java:564)
  at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
  at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59)
  at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:458)
  at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222)
  at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
  at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:168)
  at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105)
  at org.testng.TestRunner.privateRun(TestRunner.java:648)
  at org.testng.TestRunner.run(TestRunner.java:505)
  at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
  at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
  at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
  at org.testng.SuiteRunner.run(SuiteRunner.java:364)
  at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
  at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
  at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
  at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
  at org.testng.TestNG.runSuites(TestNG.java:1049)
  at org.testng.TestNG.run(TestNG.java:1017)
  at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)
  at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
  at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
  
  SKIPPED CONFIGURATION: @AfterTest teardown
  SKIPPED: test
  java.lang.NoSuchMethodError: org.apache.http.impl.client.HttpClientBuilder.setConnectionManagerShared(Z)Lorg/apache/http/impl/client/HttpClientBuilder;
  at io.github.bonigarcia.wdm.HttpClient.&lt;init&gt;(HttpClient.java:97)
  at io.github.bonigarcia.wdm.HttpClient.&lt;init&gt;(HttpClient.java:91)
  at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:407)
  at io.github.bonigarcia.wdm.WebDriverManager.setup(WebDriverManager.java:215)
  at com.cuballama.automation.framework.Prueba.setupClass(Prueba.java:45)
  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.base/java.lang.reflect.Method.invoke(Method.java:564)
  at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
  at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59)
  at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:458)
  at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222)
  at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
  at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:168)
  at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105)
  at org.testng.TestRunner.privateRun(TestRunner.java:648)
  at org.testng.TestRunner.run(TestRunner.java:505)
  at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
  at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
  at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
  at org.testng.SuiteRunner.run(SuiteRunner.java:364)
  at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
  at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
  at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
  at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
  at org.testng.TestNG.runSuites(TestNG.java:1049)
  at org.testng.TestNG.run(TestNG.java:1017)
  at 
  org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)
  at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
  at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks!</p>