DecoratedOptions extends DecoratedChild<WebDriver.Options,DecoratedWebDriver> implements WebDriver.Options { @Override public Set<Cookie> getCookies() { return getOriginal().getCookies(); } DecoratedOptions(final WebDriver.Options options, final DecoratedWebDriver driverWrapper); @Override void addCookie(Cookie cookie); @Override void deleteCookieNamed(String name); @Override void deleteCookie(Cookie cookie); @Override void deleteAllCookies(); @Override Set<Cookie> getCookies(); @Override Cookie getCookieNamed(String name); @Override WebDriver.Timeouts timeouts(); @Override WebDriver.ImeHandler ime(); @Override WebDriver.Window window(); @Override Logs logs();  }
@Test void testGetCookies() { Set<Cookie> cookies = new HashSet<>(); cookies.add(new Cookie("name", "value")); verifyFunction(WebDriver.Options::getCookies, cookies); }