### Question:
XMLBindingFactory extends AbstractBindingFactory { public Binding createBinding(BindingInfo binding) { XMLBinding xb = new XMLBinding(binding); xb.getInInterceptors().add(new AttachmentInInterceptor()); xb.getInInterceptors().add(new StaxInInterceptor()); xb.getInInterceptors().add(new DocLiteralInInterceptor()); xb.getInInterceptors().add(new XMLMessageInInterceptor()); xb.getOutInterceptors().add(new AttachmentOutInterceptor()); xb.getOutInterceptors().add(new StaxOutInterceptor()); xb.getOutInterceptors().add(new WrappedOutInterceptor()); xb.getOutInterceptors().add(new XMLMessageOutInterceptor()); xb.getInFaultInterceptors().add(new XMLFaultInInterceptor()); xb.getOutFaultInterceptors().add(new StaxOutInterceptor()); xb.getOutFaultInterceptors().add(new XMLFaultOutInterceptor()); return xb; } XMLBindingFactory();  XMLBindingFactory(Bus b); Binding createBinding(BindingInfo binding); BindingInfo createBindingInfo(ServiceInfo service, String namespace, Object config); static final Collection<String> DEFAULT_NAMESPACES; }### Answer:
@Test public void testContainsInAttachmentInterceptor() { XMLBindingFactory xbf = new XMLBindingFactory(); Binding b = xbf.createBinding(new BindingInfo(null, null)); boolean found = false; for (Interceptor<? extends Message> interseptor : b.getInInterceptors()) { if (interseptor instanceof AttachmentInInterceptor) { found = true; } } assertTrue("No in attachment interceptor found", found); }