public Cert getConsumerConnectionConfig(URL remoteAddress) {
        for (CertProvider certProvider : certProviders) {
            if (certProvider.isSupport(remoteAddress)) {
                Cert cert = certProvider.getConsumerConnectionConfig(remoteAddress);
                if (cert != null) {
                    return cert;
                }
            }
        }
        return null;
    }
@Test
    void testGetConsumerConnectionConfig() {
        CertManager certManager = new CertManager(frameworkModel);

        Assertions.assertNull(certManager.getConsumerConnectionConfig(url));

        Cert cert1 = Mockito.mock(Cert.class);
        FirstCertProvider.setCert(cert1);
        Assertions.assertNull(certManager.getConsumerConnectionConfig(url));

        FirstCertProvider.setSupport(true);
        Assertions.assertEquals(cert1, certManager.getConsumerConnectionConfig(url));

        Cert cert2 = Mockito.mock(Cert.class);
        SecondCertProvider.setCert(cert2);
        Assertions.assertEquals(cert1, certManager.getConsumerConnectionConfig(url));

        SecondCertProvider.setSupport(true);
        Assertions.assertEquals(cert1, certManager.getConsumerConnectionConfig(url));

        FirstCertProvider.setSupport(false);
        Assertions.assertEquals(cert2, certManager.getConsumerConnectionConfig(url));

        FirstCertProvider.setSupport(true);
        FirstCertProvider.setCert(null);
        Assertions.assertEquals(cert2, certManager.getConsumerConnectionConfig(url));
    }