ResourceAttributeResolver { String resolveResourceURI(final Policy policy) { if (attributeUriTemplateExists(policy)) { String attributeUriTemplate = policy.getTarget().getResource().getAttributeUriTemplate(); UriTemplate uriTemplate = new UriTemplate(attributeUriTemplate); return this.uriTemplateVariableResolver.resolve(this.requestResourceUri, uriTemplate, ATTRIBUTE_URI_TEMPLATE_VARIABLE); } return null; } ResourceAttributeResolver(final ResourceAttributeReader resourceAttributeReader,
            final String requestResourceUri, final Set<Attribute> supplementalResourceAttributes); ResourceAttributeResolverResult getResult(final Policy policy);  }
@Test(dataProvider = "resourceUriProvider") public void testResolveResourceUri(final String resourceURI, final String attributeUriTemplate, final String resolvedResourceURI) throws Exception { ResourceAttributeResolver resolver = new ResourceAttributeResolver( this.defaultResourceAttributeReader, resourceURI, null); Assert.assertEquals(resolver.resolveResourceURI(getPolicy(attributeUriTemplate)), resolvedResourceURI); }