WebDriver d = getDriver();
d.get("https://github.com/");
// Clear all cookies
assertTrue(d.manage().getCookies().size() > 0);
d.manage().deleteAllCookies();
assertEquals(d.manage().getCookies().size(), 0);
// Added cookie that expires in the past
Cookie addedCookie = new Cookie.Builder("expired", "yes")
.expiresOn(new Date(System.currentTimeMillis() - 1000)) //< now - 1 second