@Test
public void testQuotedExpiresAttribute() throws Exception {

    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);
    }
    Assert.assertNotNull("Expected some cookies",cookies);
    Assert.assertEquals("Expected 1 cookie",1,cookies.size());
    Assert.assertNotNull("Expected cookie to have getExpiryDate",cookies.get(0).getExpiryDate());
}