SimplePathPattern implements PathPattern { public boolean matches(String path) { final boolean v = match(path)!=null; return v; } SimplePathPattern(String pattern); List<PathParamName> varNames(); boolean matches(String path); Path match(String path); String raw();  }
@Test public void aRootPatternDoesntMatchChildren(){ assertFalse(new SimplePathPattern("/").matches("/test")); }
@Test public void doesntMatchSubPathsUnlessSpecified(){ assertFalse(new SimplePathPattern("/test").matches("/test/123")); }