@Test
public void shouldReadCookiesFromInChildPage() {
WebDriver webDriver = new JerseyClientHtmlunitDriver(client);
webDriver.get("http://localhost");
webDriver.manage().addCookie(new Cookie("cookieone", "valueone", "localhost", "/", null));
webDriver.get("http://localhost/cookie");
assertThat(webDriver.getTitle(), is("Cookie"));
assertThat(webDriver.findElement(By.id("cookie_header.value")).getText(), is("cookieone=valueone;"));
}