protected VersionedSecretsExtension getVersionedSecretsExtension(String pluginId) {
        final String resolvedExtensionVersion = pluginManager.resolveExtensionVersion(pluginId, SECRETS_EXTENSION, goSupportedVersions());
        return secretsExtensionMap.get(resolvedExtensionVersion);
    }
@Test
    void shouldHaveVersionedSecretsExtensionForAllSupportedVersions() {
        for (String supportedVersion : SUPPORTED_VERSIONS) {
            final String message = String.format("Must define versioned extension class for %s extension with version %s", SECRETS_EXTENSION, supportedVersion);

            when(pluginManager.resolveExtensionVersion(PLUGIN_ID, SECRETS_EXTENSION, SUPPORTED_VERSIONS)).thenReturn(supportedVersion);

            final VersionedSecretsExtension extension = this.extension.getVersionedSecretsExtension(PLUGIN_ID);

            assertThat(extension).as(message).isNotNull();
            assertThat((String) ReflectionUtil.getField(extension, "VERSION")).isEqualTo(supportedVersion);
        }
    }