@Test
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();
    Assert.assertTrue(comparator.compare(cookie1, cookie2) == 0);
    Assert.assertTrue(comparator.compare(cookie2, cookie1) == 0);
}