PathNormalizer { protected String normalizePath(String path) { if (StringUtils.isEmpty(path)) { return path; } path = UrlUtil.decode(path); path = sanitizeDotsAndSlashes(path); return UrlUtil.encode(path); }    }
@Test(dataProvider = "getPaths") public void testPaths(String path, String expectedPath) { PathNormalizer pathNormalizer = new PathNormalizer(); Assert.assertEquals(pathNormalizer.normalizePath(path), expectedPath); }