public ImmutableList<PluginMatchingResult<PortScanner>> getPortScanners() {
    return tsunamiPlugins.entrySet().stream()
        .filter(entry -> entry.getKey().type().equals(PluginType.PORT_SCAN))
        .map(
            entry ->
                PluginMatchingResult.<PortScanner>builder()
                    .setPluginDefinition(entry.getKey())
                    .setTsunamiPlugin((PortScanner) entry.getValue().get())
                    .build())
        .collect(toImmutableList());
  }
@Test
  public void getPortScanners_whenNoPortScannersInstalled_returnsEmptyList() {
    PluginManager pluginManager =
        Guice.createInjector(
                new FakeServiceFingerprinterBootstrapModule(),
                new FakeVulnDetectorBootstrapModule())
            .getInstance(PluginManager.class);

    assertThat(pluginManager.getPortScanners()).isEmpty();
  }