public ConfigResponse getServerConfig(String dataId, String group, String tenant, long readTimeout, boolean notify)
            throws NacosException {
        if (StringUtils.isBlank(group)) {
            group = Constants.DEFAULT_GROUP;
        }
        return this.agent.queryConfig(dataId, group, tenant, readTimeout, notify);
    }
@Test
    void testGeConfigConfigConflict() throws NacosException {
        
        Properties prop = new Properties();
        ServerListManager agent = Mockito.mock(ServerListManager.class);
        final NacosClientProperties nacosClientProperties = NacosClientProperties.PROTOTYPE.derive(prop);
        ClientWorker clientWorker = new ClientWorker(null, agent, nacosClientProperties);
        
        String dataId = "a";
        String group = "b";
        String tenant = "c";
        ConfigQueryResponse configQueryResponse = new ConfigQueryResponse();
        configQueryResponse.setErrorInfo(ConfigQueryResponse.CONFIG_QUERY_CONFLICT, "config is being modified");
        Mockito.when(rpcClient.request(any(ConfigQueryRequest.class), anyLong())).thenReturn(configQueryResponse);
        
        try {
            clientWorker.getServerConfig(dataId, group, tenant, 100, true);
            fail();
        } catch (NacosException e) {
            assertEquals(NacosException.CONFLICT, e.getErrCode());
        }
    }