String headerValue = "custno=12345;Expires='Thu, 01-Jan-2070 00:00:10 GMT'";
Header header = new BasicHeader("set-cookie", headerValue);
CookieSpec cookiespec = new BrowserCompatSpec();
CookieOrigin origin = new CookieOrigin("www.apache.org", 80, "/", true);
List<Cookie> cookies = cookiespec.parse(header, origin);
for (int i = 0; i < cookies.size(); i++) {
cookiespec.validate(cookies.get(i), origin);
}
assertNotNull("Expected some cookies",cookies);