wouldn't it be easier to just construct a new cookie object and compare them via `assertEquals`?