@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof Cookie)) {
            return false;
        }

        Cookie cookie = (Cookie) o;

        if (!name.equals(cookie.name)) {
            return false;
        }
        return !(value != null ? !value.equals(cookie.value) : cookie.value != null);
    }
Two cookies are equal if the name and value match
selendroid-server/src/main/java/io/selendroid/server/model/Cookie.java