@Test
public void removeAll() throws Exception {

    CookieCollection cookies = new CookieCollection(cookie, brownieCookie, cupsCookie);
    boolean modified = cookies.removeAll(Arrays.asList(brownieCookie, cupsCookie));
    Assert.assertTrue(modified);
    Assert.assertEquals(1, cookies.size());
    Assert.assertFalse(cookies.contains(brownieCookie));
    Assert.assertFalse(cookies.contains(cupsCookie));
    Assert.assertFalse(cookies.removeAll(Collections.EMPTY_LIST));
}