RewriterConfiguration oConfig = getConfig();
oConfig.getRules().add(new AddHeaderAction("MyHeader", "header"));
MockContextFacade oMockFacade = new MockContextFacade("/", ".",
"GET", new URL("http://localhost/test.aspx"));
RewriterEngine oEngine = new RewriterEngine(oConfig);
oEngine.rewrite(oMockFacade);
oMockFacade.expectStatusCode(200);
oMockFacade.expectHeaderSet("MyHeader", "header");
oMockFacade.expectLocation("/test.aspx");
}