    @Test
    public void shouldAddCookieToSharedPreferences() throws URISyntaxException {

        URI uri = URI.create("http://google.com");
        CookieStore store = new CookieTray(preferences);
        HttpCookie httpCookie = new HttpCookie("name", "value");
        store.add(uri, httpCookie);
        String cookieVal = new SerializableCookie(httpCookie).asString();
        verify(editor).putString(uri.toString() + "|" + httpCookie.getName(), cookieVal);
    }