@Test
    public void nacosConfigServiceTest() {
        try (MockedStatic<NacosFactory> nacosFactoryMockedStatic = mockStatic(NacosFactory.class)) {
            final NacosConfig nacosConfig2 = new NacosConfig();
            final NacosACMConfig nacosACMConfig = new NacosACMConfig();
            nacosConfig2.setAcm(nacosACMConfig);
            nacosFactoryMockedStatic.when(() -> NacosFactory.createConfigService(any(Properties.class))).thenReturn(mock(ConfigService.class));
            nacosConfig2.setUrl("url");
            final NacosSyncDataConfiguration nacosSyncDataConfiguration = new NacosSyncDataConfiguration();
            Assertions.assertDoesNotThrow(() -> nacosSyncDataConfiguration.nacosConfigService(nacosConfig2));
            nacosConfig2.setNamespace("url");
            nacosConfig2.setUsername("username");
            nacosConfig2.setPassword("password");
            Assertions.assertDoesNotThrow(() -> nacosSyncDataConfiguration.nacosConfigService(nacosConfig2));
            nacosACMConfig.setEnabled(true);
            nacosACMConfig.setEndpoint("acm.aliyun.com");
            nacosACMConfig.setAccessKey("accessKey");
            nacosACMConfig.setNamespace("namespace");
            nacosACMConfig.setSecretKey("secretKey");
            Assertions.assertDoesNotThrow(() -> nacosSyncDataConfiguration.nacosConfigService(nacosConfig2));
        }
    }
The test case for {@link NacosSyncDataConfiguration}.
shenyu-spring-boot-starter/shenyu-spring-boot-starter-sync-data-center/shenyu-spring-boot-starter-sync-data-nacos/src/test/java/org/apache/shenyu/springboot/starter/sync/data/nacos/NacosSyncDataConfigurationTest.java