@Override
    public String getSecretsConfigView(String pluginId) {
        return pluginRequestHelper.submitRequest(pluginId, REQUEST_GET_SECRETS_CONFIG_VIEW,
            new DefaultPluginInteractionCallback<>() {
                @Override
                public String onSuccess(String responseBody, Map<String, String> responseHeaders, String resolvedExtensionVersion) {
                    return secretsMessageConverterV1.getSecretsConfigViewFromResponse(responseBody);
                }
            });
    }
@Test
    void shouldTalkToPlugin_toFetchSecretsConfigView() {
        String responseBody = "{ \"template\": \"<div>This is secrets config view snippet</div>\" }";
        when(pluginManager.submitTo(eq(PLUGIN_ID), eq(SECRETS_EXTENSION), requestArgumentCaptor.capture())).thenReturn(DefaultGoPluginApiResponse.success(responseBody));

        final String view = secretsExtensionV1.getSecretsConfigView(PLUGIN_ID);

        assertThat(view).isEqualTo("<div>This is secrets config view snippet</div>");

        assertExtensionRequest(REQUEST_GET_SECRETS_CONFIG_VIEW, null);
    }