assertEquals("/HelloWorld", fi.getRequestUrl()); assertEquals("FilterInvocation: URL: /HelloWorld", fi.toString()); assertEquals("http:
assertEquals("/HelloWorld/some/more/segments.html", fi.getRequestUrl()); assertEquals("FilterInvocation: URL: /HelloWorld/some/more/segments.html", fi.toString()); assertEquals("http:
    public void testGettersAndStringMethods() {        MockHttpServletRequest request = new MockHttpServletRequest(null, null);        request.setServletPath("/HelloWorld");        request.setRequestURL("http://www.example.com/mycontext/HelloWorld");        MockHttpServletResponse response = new MockHttpServletResponse();        MockFilterChain chain = new MockFilterChain();        FilterInvocation fi = new FilterInvocation(request, response, chain);        assertEquals(request, fi.getRequest());        assertEquals(request, fi.getHttpRequest());        assertEquals(response, fi.getResponse());        assertEquals(response, fi.getHttpResponse());        assertEquals(chain, fi.getChain());        assertEquals("/HelloWorld", fi.getRequestUrl());        assertEquals("FilterInvocation: URL: /HelloWorld", fi.toString());        assertEquals("http://www.example.com/mycontext/HelloWorld",            fi.getFullRequestUrl());    }