List<Cookie> cookies2 = new ArrayList<Cookie>();
cr = new CookieReader(newHeaderValue);
cookie = cr.readValue();
while (cookie != null) {
cookies2.add(cookie);
cookie = cr.readValue();
}
// Compare initial and new cookies
assertEquals(cookies.size(), cookies2.size());
for (int i = 0; i < cookies.size(); i++) {