public void ShouldparseCookieWithExpiryAndAValueCorrectly() {
Date testDate = getTestDate(2010, 8, 3, 9, 25, 3);
final String rawCookie = "USER=bob; expires=Tue, 03-Aug-2010 09:25:03 GMT; path=/";
CookieParser cookieParser = new CookieParser();
Cookie cookie = cookieParser.parseCookie("localhost", rawCookie);
assertThat(cookie.getName(), is("USER"));
assertThat(cookie.getValue(), is("bob"));
assertThat(cookie.getExpires(), is(testDate));
}