CONNECTCXFClientSecured extends CONNECTCXFClient<T> { @Override public T getPort() { return serviceEndpoint.getPort(); } CONNECTCXFClientSecured(ServicePortDescriptor<T> portDescriptor, String url, String exchangeName,
        AssertionType assertion);   CONNECTCXFClientSecured(ServicePortDescriptor<T> portDescriptor, AssertionType assertion, String url,
        NhinTargetSystemType target, String serviceName); @Override T getPort(); @Override void enableWSA(AssertionType assertion, String wsAddressingTo, String wsAddressingActionId);  }
@Test public void ensureInterceptorCountIsConstant() { String url = "url"; AssertionType assertion = new AssertionType(); assertion.setTransactionTimeout(-1); CONNECTClient<TestServicePortType> client = createClient(url, assertion); Client cxfClient = ClientProxy.getClient(client.getPort()); int numInInterceptors = cxfClient.getInInterceptors().size(); int numOutInterceptors = cxfClient.getOutInterceptors().size(); createClient(url, assertion); createClient(url, assertion); CONNECTClient<TestServicePortType> client2 = createClient(url, assertion); Client cxfClient2 = ClientProxy.getClient(client2.getPort()); assertEquals(numInInterceptors, cxfClient2.getInInterceptors().size()); assertEquals(numOutInterceptors, cxfClient2.getOutInterceptors().size()); }