@Override
    public Image getIcon(String pluginId) {
        return pluginRequestHelper.submitRequest(pluginId, SecretsPluginConstants.REQUEST_GET_PLUGIN_ICON,
            new DefaultPluginInteractionCallback<>() {
                @Override
                public Image onSuccess(String responseBody, Map<String,
                    String> responseHeaders, String resolvedExtensionVersion) {
                    return secretsMessageConverterV1.getImageFromResponseBody(responseBody);
                }
            });
    }
@Test
    void shouldTalkToPlugin_toGetIcon() {
        when(pluginManager.submitTo(eq(PLUGIN_ID), eq(SECRETS_EXTENSION), requestArgumentCaptor.capture()))
                .thenReturn(DefaultGoPluginApiResponse.success("{\"content_type\":\"image/png\",\"data\":\"Zm9vYmEK\"}"));

        final Image icon = secretsExtensionV1.getIcon(PLUGIN_ID);

        assertThat(icon.getContentType()).isEqualTo("image/png");
        assertThat(icon.getData()).isEqualTo("Zm9vYmEK");
        assertExtensionRequest(REQUEST_GET_PLUGIN_ICON, null);
    }