Fix usage of PluginInfo
See
Original commit: elastic/x-pack-elasticsearch@28cdff06c6c0986a6b9c6bc33a38e9008d2dfda2
@@ -272,8 +272,8 @@ public class ClusterStatsMonitoringDocTests extends BaseMonitoringDocTestCase<Cl
final PluginsAndModules mockPluginsAndModules = mock(PluginsAndModules.class);
when(mockNodeInfo.getPlugins()).thenReturn(mockPluginsAndModules);
- final PluginInfo pluginInfo = new PluginInfo("_plugin", "_plugin_desc", "_plugin_version", "_plugin_class",
- Collections.emptyList(), false, false);
+ final PluginInfo pluginInfo = new PluginInfo("_plugin", "_plugin_desc", "_plugin_version", Version.CURRENT,
+ "1.8", "_plugin_class", Collections.emptyList(), false, false);
when(mockPluginsAndModules.getPluginInfos()).thenReturn(singletonList(pluginInfo));
final OsInfo mockOsInfo = mock(OsInfo.class);
