ServletWebRequest request = new ServletWebRequest(httpRequest, "filterPath/");
assertEquals("../../../../../", r1.renderContextPathRelativeUrl("", request));
assertEquals("../../../../../", r1.renderContextPathRelativeUrl("/", request));
assertEquals("../../../../../f", r1.renderContextPathRelativeUrl("/f", request));
assertEquals("../../../../../../f", r1.renderContextPathRelativeUrl("../f", request));
try
{
r1.renderContextPathRelativeUrl(null, request);
fail("Null 'url' is not allowed!");