public class CookieHeaderDelegateTest {
@Test
public void testParseNewCookie() {
RuntimeDelegate rd = RuntimeDelegate.getInstance();
HeaderDelegate<Cookie> cookieHeaderDelegate = rd.createHeaderDelegate(Cookie.class);
if (cookieHeaderDelegate == null) {
fail("Cookie header delegate is not regestered in RuntimeDelegateImpl");
}
Cookie expectedNewCookie = new Cookie("MyCookie", "MyCookieValue", ".", "mydomain", 1);