javax.xml.ws.Service service = new SOAPService();
Greeter greeter = service.getPort(PORT_NAME, Greeter.class);
JaxWsClientProxy eih = (JaxWsClientProxy)Proxy.getInvocationHandler(greeter);
Client client = eih.getClient();
JaxWsEndpointImpl endpoint = (JaxWsEndpointImpl)client.getEndpoint();
assertEquals("Unexpected bean name", PORT_NAME.toString() + ".endpoint", endpoint.getBeanName());
assertTrue("Unexpected value for property validating",
!Boolean.TRUE.equals(endpoint.get(Message.SCHEMA_VALIDATION_ENABLED)));
// System.out.println("endpoint interceptors");
List<Interceptor<? extends Message>> interceptors = endpoint.getInInterceptors();
printInterceptors("in", interceptors);
assertNull("Unexpected test interceptor", findTestInterceptor(interceptors));
interceptors = endpoint.getOutInterceptors();
printInterceptors("out", interceptors);
assertNull("Unexpected test interceptor", findTestInterceptor(interceptors));
interceptors = endpoint.getInFaultInterceptors();
printInterceptors("inFault", interceptors);
assertNull("Unexpected test interceptor", findTestInterceptor(interceptors));
interceptors = endpoint.getOutFaultInterceptors();
printInterceptors("outFault", interceptors);
assertNull("Unexpected test interceptor", findTestInterceptor(interceptors));
// System.out.println("service interceptors");
org.apache.cxf.service.ServiceImpl svc = (org.apache.cxf.service.ServiceImpl)endpoint.getService();
assertEquals("Unexpected bean name", SERVICE_NAME.toString(), svc.getBeanName());
interceptors = svc.getInInterceptors();
printInterceptors("in", interceptors);
assertNull("Unexpected test interceptor", findTestInterceptor(interceptors));
interceptors = svc.getOutInterceptors();