UriTemplateVariableResolver { public String resolve(final String uri, final UriTemplate uriTemplate, final String uriTemplateVariableName) { Map<String, String> variables = uriTemplate.match(uri); return variables.get(uriTemplateVariableName); }  String resolve(final String uri, final UriTemplate uriTemplate, final String uriTemplateVariableName);  }
@Test(dataProvider = "uriDataProvider") public void testMatch(final String uri, final UriTemplate attributeUriTemplate, final Object matchedURI) { Assert.assertEquals(this.attributeUriResolver.resolve(uri, attributeUriTemplate, "attribute_uri"), matchedURI); }