Refactoring.
Better test method names.
Make the request URI accessible from the template.
Refactoring: extracted configuration creation code into a method.
Added method Request.getContextPath().
Make the context path accessible from the template.
Refactoring: renamed method.