public Image getImage() {
        for (PluginInfo extensionInfo : this) {
            Image image = extensionInfo.getImage();
            if (image != null) {
                return image;
            }
        }

        return null;
    }
@Test
    public void shouldFindFirstExtensionWithImageIfPluginImplementsAtleastOneExtensionWithImage() {
        Image image1 = new Image("c1", "d1", "hash1");
        Image image2 = new Image("c2", "d2", "hash2");
        Image image3 = new Image("c3", "d3", "hash3");

        ElasticAgentPluginInfo elasticAgentPluginInfo = new ElasticAgentPluginInfo(null, null, null, image1, null, null);
        AuthorizationPluginInfo authorizationPluginInfo = new AuthorizationPluginInfo(null, null, null, image2, null);
        AnalyticsPluginInfo analyticsPluginInfo = new AnalyticsPluginInfo(null, image3, null, null);

        assertThat(new CombinedPluginInfo(elasticAgentPluginInfo).getImage(), is(image1));
        assertThat(new CombinedPluginInfo(authorizationPluginInfo).getImage(), is(image2));
        assertThat(new CombinedPluginInfo(analyticsPluginInfo).getImage(), is(image3));

        assertThat(new CombinedPluginInfo(List.of(elasticAgentPluginInfo, authorizationPluginInfo)).getImage(), anyOf(is(image1), is(image2)));
        assertThat(new CombinedPluginInfo(List.of(analyticsPluginInfo, authorizationPluginInfo)).getImage(), anyOf(is(image2), is(image3)));
    }