if (f.exists())
f.delete();
MockContextFacade oMockFacade = new MockContextFacade("/", "src/test/resources",
"GET", new URL("http://localhost/advertiser/home.html"));
RewriterEngine oEngine = new RewriterEngine(GetConfig());
oEngine.rewrite(oMockFacade);
oMockFacade.expectLocation("/advertiser/home.html");
oMockFacade.expectStatusCode(200);
f.createNewFile();
MockContextFacade oMockFacade2 = new MockContextFacade("/", "src/test/resources",
"GET", new URL("http://localhost/advertiser/home.html"));
RewriterEngine oEngine2 = new RewriterEngine(GetConfig());
oEngine2.rewrite(oMockFacade2);
oMockFacade2.expectStatusCode(302);
oMockFacade2.expectRedirectLocation("/advertiser/down.html");
oMockFacade2.expectHeaderSet("Pragma", "no-cache");
}