### Question:
WebDriverRunner implements Runner { public void navigateTo(String url) { try { logger.debug(message.getString("message-try-access", url)); setDefaultWindow(); driver.navigate().to(url); } catch (WebDriverException cause) { throw new BehaveException(message.getString("exception-navigate-to", url), cause); } }  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 testNavigateTo() { WebDriver driverExpected = Mockito.mock(WebDriver.class); Navigation navigation = Mockito.mock(Navigation.class); Mockito.when(driverExpected.navigate()).thenReturn(navigation); WebDriverRunner runner = new WebDriverRunner(); runner.setWebDriver(driverExpected); runner.navigateTo("http: }