@Override
    public ExecuteContext doBefore(ExecuteContext context) {
        if (!configuration.isEnableOriginConfigCenter() || !isDynamicClosed()) {
            return context;
        }
        final Object source = context.getArguments()[0];
        if (!BOOTSTRAP_SOURCE.equals(source.getClass().getName())) {
            return context;
        }
        BootstrapPropertySource<?> bootstrapPropertySource = (BootstrapPropertySource<?>) source;
        if (isTargetSource(bootstrapPropertySource.getDelegate())) {
            LOGGER.info(String.format(Locale.ENGLISH,
                    "Ignored source [%s] because of origin config center's has been closed!", source));
            context.skip(null);
        }
        return context;
    }
@Test
    public void test() {
        try (final MockedStatic<PluginConfigManager> pluginConfigManagerMockedStatic = Mockito
                .mockStatic(PluginConfigManager.class)) {
            final DynamicConfiguration configuration = new DynamicConfiguration();
            pluginConfigManagerMockedStatic.when(() -> PluginConfigManager.getPluginConfig(DynamicConfiguration.class))
                    .thenReturn(configuration);
            final MutableSourceInterceptor interceptor = new MutableSourceInterceptor();
            final ExecuteContext context = interceptor.doBefore(buildContext(null));
            Assert.assertFalse(context.isSkip());
            final OriginConfigDisableSource test = new OriginConfigDisableSource("test");
            ConfigHolder.INSTANCE.getConfigSources().add(test);
            final ExecuteContext zkContext = interceptor.doBefore(buildContext(false));
            Assert.assertTrue(zkContext.isSkip());
            final ExecuteContext nacosContext = interceptor.doBefore(buildContext(true));
            Assert.assertTrue(nacosContext.isSkip());
        } catch (Exception exception) {
            // ignored
        } finally {
            ConfigHolder.INSTANCE.getConfigSources()
                    .removeIf(configSource -> configSource.getClass() == OriginConfigDisableSource.class);
            Collections.sort(ConfigHolder.INSTANCE.getConfigSources());
        }
    }