Path { @Deprecated public Path(String path) { this(path, ""); } @Deprecated  Path(String path); @Deprecated  Path(String path, String optionalPrefix);  Path(URI uri);  Path(URI uri, String optionalPrefix); boolean matches(String pathSpec); String get(String placeholder); String getRest(); String asString(); @Override String toString();  }
@Test public void testPath() { assertFalse(new Path(URI.create("")).matches("/a/{foo}/bar/{b}")); assertFalse(new Path(URI.create(" assertFalse(new Path(URI.create(" assertFalse(new Path(URI.create(" Path path = new Path(URI.create("/a/1/bar/fuz")); assertTrue(path.matches("/a/{foo}/bar/{b}")); assertEquals("1", path.get("foo")); assertEquals("fuz", path.get("b")); }