* The resulting cookie will be output with its parameters, in JSON format.
*
* @param expected The cookie to check
*/
protected void assertCookieMatchesAndSay(Cookie expected) {
Cookie cookie = apiTest.getTestState().getCookie(expected.name);
assertNotNull(cookie);
assertEquals(expected.value, cookie.value);
if (expected.expires == null) {
assertNull(cookie.expires);
} else {