* @exception Exception for backward compatibility with JDK 1.2.2 (not
* needed for JDK 1.3+, but needed for URLDecoder.decode())
*/
public void endReceiveCookie(WebResponse theResponse) throws Exception
{
Cookie cookie = theResponse.getCookie("responsecookie");
assertNotNull("Cannot find [responsecookie]", cookie);
assertEquals("responsecookie", cookie.getName());
// Some servers may encode the cookie value (ex: the latest
// version of Tomcat 4.0). In order for this test to succeed on
// all servlet engine, we URL decode the cookie value before
// comparing it.
assertEquals("this is a response cookie",
URLDecoder.decode(cookie.getValue()));
assertEquals("jakarta.apache.org", cookie.getDomain());
}