@Bean
    @ConditionalOnProperty(prefix = "shenyu.discovery", name = "enable", matchIfMissing = false, havingValue = "true")
    @ConfigurationProperties(prefix = "shenyu.discovery")
    public ShenyuDiscoveryConfig shenyuDiscoveryConfig() {
        return new ShenyuDiscoveryConfig();
    }
@Test
    public void testShenyuDiscoveryConfig() {
        MockedStatic<RegisterUtils> registerUtilsMockedStatic = mockStatic(RegisterUtils.class);
        registerUtilsMockedStatic.when(() -> RegisterUtils.doLogin(any(), any(), any())).thenReturn(Optional.ofNullable("token"));
        applicationContextRunner.run(context -> {
            ShenyuDiscoveryConfig config = context.getBean("shenyuDiscoveryConfig", ShenyuDiscoveryConfig.class);
            assertNotNull(config);
            assertThat(config.getType()).isEqualTo("local");
        });
        registerUtilsMockedStatic.close();
    }