CookieOrigin origin = new CookieOrigin(".whatever.com", 80, "/", false);
assertTrue(cookiespec.match(cookie, origin));
}
public void testCookieMatch3() throws Exception {
CookieSpec cookiespec = new BrowserCompatSpec();
BasicClientCookie cookie = new BasicClientCookie("name", "value");
cookie.setDomain(".whatever.com");
cookie.setPath("/");
CookieOrigin origin = new CookieOrigin(".really.whatever.com", 80, "/", false);
assertTrue(cookiespec.match(cookie, origin));
}