}
@Test
public void testRedirectTo() {
HttpResponse response;
HttpBrowser browser = new HttpBrowser();
response = browser.sendRequest(HttpRequest.get("localhost:8173/alpha.red1.html"));
assertEquals("alpha.jsp", response.bodyText().trim());
response = browser.sendRequest(HttpRequest.get("localhost:8173/alpha.red2.html"));
assertEquals("hello", response.bodyText().trim());
response = browser.sendRequest(HttpRequest.get("localhost:8173/alpha.world.html"));
assertEquals("Hello world planet Mars and Universe 173", response.bodyText().trim());
response = browser.sendRequest(HttpRequest.get("localhost:8173/alpha.postme.html"));
assertEquals("alpha.hello.jsp", response.bodyText().trim());
}