source: class CookieCollectionTest {
  
      public static final String COOKIE_NAME;
      public static final String COOKIE_VALUE;
      public static final String BROWNIE_NAME;
      private Cookie cookie;
      private Cookie cupsCookie;
      private Cookie brownieCookie;
  
      @Test
      public void retainAll() throws Exception {
  
target:         CookieCollection cookies = new CookieCollection(cookie, brownieCookie, cupsCookie);
          List<Cookie> content = Arrays.asList(cookie, brownieCookie);
          boolean modified = cookies.retainAll(content);
          Assert.assertTrue(modified);
          Assert.assertEquals(2, cookies.size());
          Assert.assertTrue(cookies.containsAll(content));
          Assert.assertFalse(cookies.contains(cupsCookie));
          Assert.assertFalse(cookies.retainAll(content));
      }
  
  }