+ " { \"firstName\" : \"Mary\", \"lastName\" : \"Smith\", \"age\" : 32 }], "
+ "\"sales\" : [ { \"firstName\" : \"Sally\", \"lastName\" : \"Green\", \"age\" : 27 }, "
+ "{ \"firstName\" : \"Jim\", \"lastName\" : \"Galley\", \"age\" : 41 } ] };"
+ " $Domain=LOONEY_TUNES; $Version=1; $Path=/; SHIPPING=FEDEX"));
Cookie cookie = cookies.get("CUSTOMER");
Assert.assertEquals("CUSTOMER", cookie.getName());
Assert.assertEquals("{ \"accounting\" : [ { \"firstName\" : \"John\", \"lastName\" : \"Doe\", \"age\" : 23 },"
+ " { \"firstName\" : \"Mary\", \"lastName\" : \"Smith\", \"age\" : 32 }], "
+ "\"sales\" : [ { \"firstName\" : \"Sally\", \"lastName\" : \"Green\", \"age\" : 27 }, "
+ "{ \"firstName\" : \"Jim\", \"lastName\" : \"Galley\", \"age\" : 41 } ] }",
cookie.getValue());
Assert.assertEquals("LOONEY_TUNES", cookie.getDomain());
Assert.assertEquals(1, cookie.getVersion());
Assert.assertEquals("/", cookie.getPath());
cookie = cookies.get("SHIPPING");
Assert.assertEquals("SHIPPING", cookie.getName());
Assert.assertEquals("FEDEX", cookie.getValue());
Assert.assertEquals("LOONEY_TUNES", cookie.getDomain());
Assert.assertEquals(1, cookie.getVersion());
Assert.assertEquals("/", cookie.getPath());
}