assertTrue(comparator.compare(cookie1, cookie2) == 0);
assertTrue(comparator.compare(cookie2, cookie1) == 0);
}
public void testEquality4() {
BasicClientCookie cookie1 = new BasicClientCookie("name1", "value");
cookie1.setPath("/this");
BasicClientCookie cookie2 = new BasicClientCookie("name1", "value");
cookie2.setPath("/that");
Comparator<Cookie> comparator = new CookiePathComparator();
assertTrue(comparator.compare(cookie1, cookie2) == 0);
assertTrue(comparator.compare(cookie2, cookie1) == 0);
}