### Question:
Wsdl11AttachmentPolicyProvider extends AbstractPolicyProvider { Policy resolveLocal(PolicyReference ref, DescriptionInfo di) { String uri = ref.getURI().substring(1); String absoluteURI = di.getBaseURI(); if (absoluteURI == null) { absoluteURI = Integer.toString(di.hashCode()) + ref.getURI(); } else { absoluteURI = absoluteURI + ref.getURI(); } Policy resolved = registry.lookup(absoluteURI); if (null != resolved) { return resolved; } ReferenceResolver resolver = new LocalServiceModelReferenceResolver(di, builder); resolved = resolver.resolveReference(uri); if (null != resolved) { ref.setURI(absoluteURI); registry.register(absoluteURI, resolved); } return resolved; } Wsdl11AttachmentPolicyProvider();  Wsdl11AttachmentPolicyProvider(Bus bus); Policy getEffectivePolicy(ServiceInfo si, Message m); Policy getEffectivePolicy(EndpointInfo ei, Message m); Policy getEffectivePolicy(BindingOperationInfo bi, Message m); Policy getEffectivePolicy(BindingMessageInfo bmi, Message m); Policy getEffectivePolicy(BindingFaultInfo bfi, Message m);  }### Answer:
@Test public void testResolveLocal() { Policy ep; ep = app.getElementPolicy(services[16]); assertNotNull(ep); verifyAssertionsOnly(ep, 2); try { app.getElementPolicy(endpoints[16]); fail("Expected PolicyException not thrown."); } catch (PolicyException ex) { } }