assertEquals("key1=value1; domain=192.168.1.1", response.getFirstHeader("Set-Cookie").getValue());
}
@Test
public void testRewriteLocationHeader() throws Exception {
ServerConfig config = new ServerConfig();
ServiceUrl serviceUrl = new ServiceUrl(config);
serviceUrl.setPath("/examples/");
serviceUrl.setType(ServiceType.REVERSE);
serviceUrl.setHost(new URL("http://localhost/examples/servlets"));
ReverseUrl reverseUrl = new DefaultReverseUrl(serviceUrl);