Image getIcon(String pluginId) {
        return getVersionedElasticAgentExtension(pluginId).getIcon(pluginId);
    }
@Test
    public void shouldCallTheVersionedExtensionBasedOnResolvedVersion() {
        when(pluginManager.submitTo(eq(PLUGIN_ID), eq(ELASTIC_AGENT_EXTENSION), requestArgumentCaptor.capture())).thenReturn(DefaultGoPluginApiResponse.success("{\"content_type\":\"image/png\",\"data\":\"Zm9vYmEK\"}"));

        extension.getIcon(PLUGIN_ID);

        assertExtensionRequest("4.0", REQUEST_GET_PLUGIN_SETTINGS_ICON, null);
    }