public static boolean pathPattern(final String pathPattern, final String realPath) {
        PathPattern pattern = PathPatternParser.defaultInstance.parse(pathPattern);
        return pattern.matches(PathContainer.parsePath(realPath));
    }
@Test
    public void testPathPattern() {
        // test matching with *'s
        assertTrue(PathMatchUtils.pathPattern("*", "test"));
        assertTrue(PathMatchUtils.pathPattern("test*", "test"));
        assertTrue(PathMatchUtils.pathPattern("test*", "testTest"));
        assertFalse(PathMatchUtils.pathPattern("test*aaa", "testblaaab"));
        // test matching with **'s
        assertTrue(PathMatchUtils.pathPattern("/**", "/testing/testing"));
        assertTrue(PathMatchUtils.pathPattern("/test/**", "/test/test"));
    }