response.setHeader(HEADER, "JSESSIONID=1234; Path=/proxy/path/that/we/dont/want; Max-Age=3600; Domain=.foo.bar.com; Secure");
super.handle(request, response, context);
}
});
GetMethodWebRequest req = makeGetMethodRequest(sourceBaseUri);
WebResponse rsp = execAndAssert(req, "");
// note httpunit doesn't set all cookie fields, ignores max-agent, secure, etc.
// also doesn't support more than one header of same name so I can't test this working on two cookies
assertEquals("!Proxy!" + servletName + "JSESSIONID=1234;path=" + servletPath, rsp.getHeaderField("Set-Cookie"));
}