*
* @since 1.6
*/
public void test_Equals() {
Object obj = new Object();
HttpCookie cookie = new HttpCookie("test", "testValue");
HttpCookie cookie2 = new HttpCookie("TesT", "TEstValue");
assertFalse(cookie.equals(obj));
assertFalse(cookie.equals(null));
assertTrue(cookie2.equals(cookie));
assertTrue(cookie.equals(cookie2));
assertTrue(cookie.equals(cookie));
cookie.setDomain(" test");
cookie2.setDomain("test");
assertFalse(cookie.equals(cookie2));
cookie.setDomain("TEST");
assertTrue(cookie.equals(cookie2));
cookie.setPath("temp\\e");
assertFalse(cookie.equals(cookie2));
cookie2.setPath("temp\\E");
assertFalse(cookie.equals(cookie2));
cookie.setDiscard(true);
cookie.setMaxAge(-1234);
cookie2.setPath("temp\\e");
assertTrue(cookie.equals(cookie2));
}