@Test
public void iterator() throws Exception {

    CookieCollection cookies = new CookieCollection(cookie);
    Iterator<Cookie> it = cookies.iterator();
    Assert.assertTrue(it.hasNext());
    Assert.assertEquals(cookie, it.next());
    Assert.assertFalse(it.hasNext());
}