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();
// The service shouldn't pick up the <jaxws:endpoint>...
// assertEquals("Unexpected bean name", PORT_NAME.toString() + ".endpoint", endpoint.getBeanName());
// // assertTrue("Unexpected value for property validating", endpoint.getValidating());
// List<Interceptor> interceptors = endpoint.getInInterceptors();
// assertEquals("Unexpected number of interceptors.", 1, interceptors.size());
// assertEquals("Unexpected interceptor id.", "endpoint-in",
// findTestInterceptor(interceptors).getId());
// interceptors = endpoint.getOutInterceptors();
// assertEquals("Unexpected number of interceptors.", 1, interceptors.size());
// assertEquals("Unexpected interceptor id.", "endpoint-out",
// findTestInterceptor(interceptors).getId());
// interceptors = endpoint.getInFaultInterceptors();
// assertEquals("Unexpected number of interceptors.", 1, interceptors.size());
// assertEquals("Unexpected interceptor id.", "endpoint-in-fault",
// findTestInterceptor(interceptors).getId());
// interceptors = endpoint.getOutFaultInterceptors();
// assertEquals("Unexpected number of interceptors.", 1, interceptors.size());
// assertEquals("Unexpected interceptor id.", "endpoint-out-fault",
// findTestInterceptor(interceptors).getId());
org.apache.cxf.service.ServiceImpl svc = (org.apache.cxf.service.ServiceImpl)endpoint.getService();
assertEquals("Unexpected bean name.", SERVICE_NAME.toString(), svc.getBeanName());
List<Interceptor<? extends Message>> interceptors = svc.getInInterceptors();
assertEquals("Unexpected number of interceptors.", 1, interceptors.size());
assertEquals("Unexpected interceptor id.", "service-in",
findTestInterceptor(interceptors).getId());