WebDriverGenerator { public String getCurrentUrl() { return driverObject + ".getCurrentUrl()"; } WebDriverGenerator(String value); String get(String value); String close(); String getCurrentUrl(); String getTitle(); String getPageSource(); String getWindowHandles(); String getWindowHandle(); WebElementGenerator findElement(String value); WebElementListGenerator findElements(String value); Options manage(); TargetLocator switchTo(); Navigation navigate();  }
@Test public void checkGetCurrentURLReturnsCorrectCode() { assertThat(driver.getCurrentUrl(), is(equalTo("driver.getCurrentUrl()"))); }