protected void scheduleRefresh() {
        FrameworkExecutorRepository repository =
                frameworkModel.getBeanFactory().getBean(FrameworkExecutorRepository.class);
        refreshFuture = repository
                .getSharedScheduledExecutor()
                .scheduleAtFixedRate(
                        this::generateCert,
                        certConfig.getRefreshInterval(),
                        certConfig.getRefreshInterval(),
                        TimeUnit.MILLISECONDS);
    }
@Test
    void testRefresh() {
        FrameworkModel frameworkModel = new FrameworkModel();
        AtomicInteger count = new AtomicInteger(0);
        DubboCertManager certManager = new DubboCertManager(frameworkModel) {
            @Override
            protected CertPair generateCert() {
                count.incrementAndGet();
                return null;
            }
        };

        certManager.certConfig = new CertConfig(null, null, null, null, 10);
        certManager.scheduleRefresh();

        Assertions.assertNotNull(certManager.refreshFuture);
        await().until(() -> count.get() > 1);
        certManager.refreshFuture.cancel(false);
        frameworkModel.destroy();
    }