oConfiguration.getRules().add(new SetCookieAction("MyCookie", "MyValue"));
MockContextFacade oMockFacade = new MockContextFacade("/", ".",
"GET", new URL("http://localhost/test.aspx"));
RewriterEngine oEngine = new RewriterEngine(oConfiguration);
oEngine.rewrite(oMockFacade);
oMockFacade.expectStatusCode(200);
oMockFacade.expectLocation("/test.aspx");
oMockFacade.expectCookieSet("MyCookie", "MyValue");
}