private void assertPatternMatch(String pattern, String path, PatternMatcher pm) {
        assertTrue(pm.matches(pattern, path), "Expected path '" + path + "' to match pattern '" + pattern + "'");
    }
Unit tests for the {@link RegExPatternMatcher}.

@since 1.0
core/src/test/java/org/apache/shiro/util/RegExPatternMatcherTest.java