UriTemplate { public Matcher matcher(String url) { return compiledUrl.matcher(url); } UriTemplate(String pattern); Matcher matcher(String url); void compile(); Map<String, String> extractParameters(Matcher matcher);  }
@Test public void testCorrectMatch() { UriTemplate template1 = new UriTemplate("http: UriTemplate template2 = new UriTemplate("http: assertFalse(template1.matcher("http: assertTrue(template1.matcher("http: assertTrue(template2.matcher("http: assertFalse(template2.matcher("http: }