@Override
    public String getConfig(String key, String group, long timeout) throws IllegalStateException {
        try {
            long nacosTimeout = timeout < 0 ? getDefaultTimeout() : timeout;
            if (StringUtils.isEmpty(group)) {
                group = DEFAULT_GROUP;
            }
            return configService.getConfig(key, group, nacosTimeout);
        } catch (NacosException e) {
            logger.error(CONFIG_ERROR_NACOS, "", "", e.getMessage(), e);
        }
        return null;
    }
@Test
    void testGetConfig() throws Exception {
        put("org.apache.dubbo.nacos.testService.configurators", "hello");
        Thread.sleep(200);
        put("dubbo.properties", "test", "aaa=bbb");
        Thread.sleep(200);
        put("org.apache.dubbo.demo.DemoService:1.0.0.test:xxxx.configurators", "helloworld");
        Thread.sleep(200);
        Assertions.assertEquals(
                "hello",
                config.getConfig(
                        "org.apache.dubbo.nacos.testService.configurators", DynamicConfiguration.DEFAULT_GROUP));
        Assertions.assertEquals("aaa=bbb", config.getConfig("dubbo.properties", "test"));
        Assertions.assertEquals(
                "helloworld",
                config.getConfig(
                        "org.apache.dubbo.demo.DemoService:1.0.0.test:xxxx.configurators",
                        DynamicConfiguration.DEFAULT_GROUP));
    }