### Question:
Wsdl11AttachmentPolicyProvider extends AbstractPolicyProvider { public Policy getEffectivePolicy(ServiceInfo si, Message m) { return getElementPolicy(si); } 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 testEffectiveBindingOperationPolicies() { Policy ep; ep = app.getEffectivePolicy(getBindingOperationInfo(endpoints[0]), null); assertTrue(ep == null || ep.isEmpty()); ep = app.getEffectivePolicy(getBindingOperationInfo(endpoints[9]), null); assertNotNull(ep); assertFalse(ep.isEmpty()); verifyAssertionsOnly(ep, 1); ep = app.getEffectivePolicy(getBindingOperationInfo(endpoints[10]), null); assertNotNull(ep); assertFalse(ep.isEmpty()); verifyAssertionsOnly(ep, 2); ep = app.getEffectivePolicy(getBindingOperationInfo(endpoints[11]), null); assertNotNull(ep); assertFalse(ep.isEmpty()); verifyAssertionsOnly(ep, 3); }
@Test public void testEffectiveMessagePolicies() { Policy ep; ep = app.getEffectivePolicy(getBindingMessageInfo(endpoints[0], true), null); assertTrue(ep == null || ep.isEmpty()); ep = app.getEffectivePolicy(getBindingMessageInfo(endpoints[12], true), null); assertFalse(ep.isEmpty()); verifyAssertionsOnly(ep, 1); ep = app.getEffectivePolicy(getBindingMessageInfo(endpoints[13], true), null); assertFalse(ep.isEmpty()); verifyAssertionsOnly(ep, 1); ep = app.getEffectivePolicy(getBindingMessageInfo(endpoints[14], true), null); assertFalse(ep.isEmpty()); verifyAssertionsOnly(ep, 1); ep = app.getEffectivePolicy(getBindingMessageInfo(endpoints[15], true), null); assertFalse(ep.isEmpty()); verifyAssertionsOnly(ep, 3); }