public static String name(final String path) {
        if(String.valueOf(Path.DELIMITER).equals(path)) {
            return path;
        }
        if(!StringUtils.contains(path, Path.DELIMITER)) {
            return path;
        }
        if(StringUtils.endsWith(path, String.valueOf(Path.DELIMITER))) {
            return StringUtils.substringAfterLast(normalize(path), String.valueOf(Path.DELIMITER));
        }
        return StringUtils.substringAfterLast(path, String.valueOf(Path.DELIMITER));
    }
@Test
    public void testName() {
        assertEquals("p", PathNormalizer.name("/p"));
        assertEquals("n", PathNormalizer.name("/p/n"));
        assertEquals("p", PathNormalizer.name("p"));
        assertEquals("n", PathNormalizer.name("p/n"));
    }