@Override
    public Result run(GoPluginDescriptor pluginDescriptor, Map<String, List<String>> extensionsInfoOfPlugin) {
        final ValidationResult validationResult = validate(pluginDescriptor, extensionsInfoOfPlugin);
        return new Result(validationResult.hasError(), validationResult.toErrorMessage());
    }
@Test
    void shouldConsiderPluginValidWhenOneOfTheExtensionVersionUsedByThePluginIsSupportedByGoCD() {
        final PluginPostLoadHook.Result validationResult = pluginExtensionsAndVersionValidator.run(descriptor, Map.of(ELASTIC_AGENT_EXTENSION, List.of("a.b", "2.0")));

        assertThat(validationResult.isAFailure()).isFalse();
    }