### Question:
WebDriverRunner implements Runner { public Object getDriver() { if (driver == null) { browser = Enum.valueOf(WebBrowser.class, BehaveConfig.getRunner_ScreenType()); driver = browser.getWebDriver(); if (BehaveConfig.getRunner_WindowMaximizeEnabled()) { driver.manage().window().maximize(); } logger.debug(message.getString("message-webdriver-started", browser.toString())); try { driver.manage().timeouts().pageLoadTimeout(BehaveConfig.getRunner_ScreenMaxWait(), TimeUnit.MILLISECONDS); driver.manage().timeouts().implicitlyWait(BehaveConfig.getRunner_ScreenMaxWait(), TimeUnit.MILLISECONDS); } catch (UnsupportedCommandException e) { logger.error(message.getString("message-configure-timeout", browser.toString()), e); } } return driver; }  Object getDriver(); void start(); void navigateTo(String url); void get(String url); String getCurrentUrl(); String getTitle(); Element getElement(String currentPageName, String elementName); @Override Element getElement(Class<?> elementClass); String getPageSource(); void close(); void quit(); Screen getScreen(); File saveScreenshot(); File saveScreenshotTo(String fileName); File saveScreenshotTo(String fileName, boolean generateSource); void setScreen(String screenName); static String MESSAGEBUNDLE; }### Answer:
@Test public void testGetDriver() { WebDriver driverExpected = Mockito.mock(WebDriver.class); WebDriverRunner runner = new WebDriverRunner(); runner.setWebDriver(driverExpected); WebDriver driverActual = (WebDriver) runner.getDriver(); Assert.assertEquals(driverExpected, driverActual); }