assertThat(htmlUnitDriver.findElement(By.className("message")).getText(), is("Success"));
htmlUnitDriver.get("http://localhost/contacts/1");
Cookie flashMessageCookie = htmlUnitDriver.manage().getCookieNamed("FLASH_MESSAGE");
assertThat(flashMessageCookie, is(nullValue()));
assertThat(htmlUnitDriver.findElements(By.className("message")), is(Matchers.<WebElement>empty()));
}