### Question:
WebDriversRegistryImpl extends AbstractFactoryRegistryImpl<WebDriverFactory, ReflectiveWebDriverFactory> { public WebDriver newWebDriver(String name, Capabilities capabilities, ConfigurationProperties configuration) { synchronized (this) { return get(name).newWebDriver(capabilities, configuration); } } WebDriversRegistryImpl(); WebDriver newWebDriver(String name, Capabilities capabilities, ConfigurationProperties configuration);  }### Answer:
@Test public void testCustomClassName() { WebDriverFactory customWebFactory = webDrivers.get(CustomWebDriver.class.getName()); WebDriver webDriver = customWebFactory.newWebDriver(null, null); try { assertThat(webDriver).isExactlyInstanceOf(CustomWebDriver.class); } finally { webDriver.quit(); } }
@Test public void testCustomClassNameNewWebDriver() { WebDriver webDriver = webDrivers.newWebDriver(CustomWebDriver.class.getName(), null, null); try { assertThat(webDriver).isExactlyInstanceOf(CustomWebDriver.class); } finally { webDriver.quit(); } }