DelegatingEndpointInterceptor implements SmartEndpointInterceptor, SoapEndpointInterceptor { @Override public boolean shouldIntercept(MessageContext messageContext, Object endpoint) { return true; }  @Override boolean shouldIntercept(MessageContext messageContext, Object endpoint); @Override boolean handleRequest(MessageContext messageContext, Object endpoint); @Override boolean handleResponse(MessageContext messageContext, Object endpoint); @Override boolean handleFault(MessageContext messageContext, Object endpoint); @Override void afterCompletion(MessageContext messageContext, Object endpoint, Exception ex); @Override boolean understands(SoapHeaderElement header); List<EndpointInterceptor> getInterceptors(); void setInterceptors(List<EndpointInterceptor> interceptors);  }
@Test public void testShouldIntercept() throws Exception { Assert.assertTrue(delegatingEndpointInterceptor.shouldIntercept(messageContext, webServiceEndpoint)); }