    @Test
    public void shouldFindExistingCookie() {

        WebDriver driver = mock(WebDriver.class);
        Options options = mock(Options.class);
        Cookie cookie = new Cookie(cookieName, "oki-doki");


        when(driver.manage()).thenReturn(options);
        when(options.getCookieNamed(eq(cookieName))).thenReturn(cookie);

        assertThat("Cookie not found!", driver, hasCookie(cookieName));
    }