public static void waitGatewayPluginUse(final GatewayClient gatewayClient, final String pluginClass) throws Exception {
        Map<String, Integer> pluginMap = gatewayClient.getPlugins();
        int retryNum = 0;
        boolean existPlugin = false;
        while (!existPlugin && retryNum < 10) {
            for (String plugin : pluginMap.keySet()) {
                if (plugin.startsWith(pluginClass)) {
                    existPlugin = true;
                    break;
                }
            }
            Thread.sleep(10000);
            retryNum++;
            pluginMap = gatewayClient.getPlugins();
        }
        if (!existPlugin) {
            throw new AssertionFailedError(pluginClass + " plugin not found");
        }
    }
waitGatewayPluginUse.

@param gatewayClient gatewayClient
@param pluginClass AbstractShenyuPlugin implement class
@throws Exception Exception
shenyu-e2e/shenyu-e2e-client/src/main/java/org/apache/shenyu/e2e/client/WaitDataSync.java