@Test
@SuppressWarnings("unchecked")
public void addAll() throws Exception {

    CookieCollection cookies = new CookieCollection();
    List<Cookie> content = Arrays.asList(cookie, brownieCookie, cupsCookie);
    boolean modified = cookies.addAll(content);
    Assert.assertTrue(modified);
    Assert.assertEquals(3, cookies.size());
    Assert.assertTrue(cookies.containsAll(content));
    Assert.assertFalse(cookies.addAll(Collections.EMPTY_LIST));
}