@Override
  public void execute(Context context) {
    try (StreamWriter<ProjectDump.Plugin> writer = dumpWriter.newStreamWriter(DumpElement.PLUGINS)) {

      Collection<PluginInfo> plugins = pluginRepository.getPluginInfos();
      for (PluginInfo plugin : plugins) {
        ProjectDump.Plugin.Builder builder = ProjectDump.Plugin.newBuilder();
        writer.write(convert(plugin, builder));
      }
      LoggerFactory.getLogger(getClass()).debug("{} plugins exported", plugins.size());
    }
  }
@Test
  public void export_zero_plugins() {
    when(pluginRepository.getPluginInfos()).thenReturn(Collections.emptyList());

    underTest.execute(new TestComputationStepContext());

    assertThat(dumpWriter.getWrittenMessagesOf(DumpElement.PLUGINS)).isEmpty();
    assertThat(logTester.logs(Level.DEBUG)).contains("0 plugins exported");
  }