A mock object simulating behaviour of document.cookie. Useful for unit tests.