HttpRequest request = new HttpRequest();
request.setPath("hello");
request.setContext("/myapp");
CommonMiddleware middleware = new CommonMiddleware();
javango.http.HttpResponse response = middleware.processRequest(request);
assertNotNull(response);
assertTrue(response instanceof HttpResponseRedirect);
assertEquals("/myapp/hello/", ((HttpResponseRedirect)response).getUrl());
}