public ProviderCert getProviderConnectionConfig(URL localAddress, SocketAddress remoteAddress) {
        for (CertProvider certProvider : certProviders) {
            if (certProvider.isSupport(localAddress)) {
                ProviderCert cert = certProvider.getProviderConnectionConfig(localAddress);
                if (cert != null) {
                    return cert;
                }
            }
        }
        return null;
    }
@Test
    void testGetProviderConnectionConfig() {
        CertManager certManager = new CertManager(frameworkModel);

        Assertions.assertNull(certManager.getProviderConnectionConfig(url, null));

        ProviderCert providerCert1 = Mockito.mock(ProviderCert.class);
        FirstCertProvider.setProviderCert(providerCert1);
        Assertions.assertNull(certManager.getProviderConnectionConfig(url, null));

        FirstCertProvider.setSupport(true);
        Assertions.assertEquals(providerCert1, certManager.getProviderConnectionConfig(url, null));

        ProviderCert providerCert2 = Mockito.mock(ProviderCert.class);
        SecondCertProvider.setProviderCert(providerCert2);
        Assertions.assertEquals(providerCert1, certManager.getProviderConnectionConfig(url, null));

        SecondCertProvider.setSupport(true);
        Assertions.assertEquals(providerCert1, certManager.getProviderConnectionConfig(url, null));

        FirstCertProvider.setSupport(false);
        Assertions.assertEquals(providerCert2, certManager.getProviderConnectionConfig(url, null));

        FirstCertProvider.setSupport(true);
        FirstCertProvider.setProviderCert(null);
        Assertions.assertEquals(providerCert2, certManager.getProviderConnectionConfig(url, null));
    }