@Test
public void add() throws Exception {

    CookieCollection cookies = new CookieCollection(cookie);
    Cookie newCookie = new Cookie(BROWNIE_NAME, "mmh");
    cookies.add(newCookie);
    Assert.assertEquals(2, cookies.size());
    Assert.assertTrue(cookies.contains(newCookie));
    Assert.assertTrue(cookies.contains(BROWNIE_NAME));
}