SensorEnrichmentConfigServiceImpl implements SensorEnrichmentConfigService { @Override public List<String> getAvailableThreatTriageAggregators() { return Arrays.asList(Aggregators.values()).stream().map(Enum::toString).collect(Collectors.toList()); } @Autowired  SensorEnrichmentConfigServiceImpl(final ObjectMapper objectMapper,
        final CuratorFramework client, final ConfigurationsCache cache,
        final HBaseClient hBaseClient); @Override SensorEnrichmentConfig save(String name, SensorEnrichmentConfig sensorEnrichmentConfig); @Override SensorEnrichmentConfig findOne(String name); @Override Map<String, SensorEnrichmentConfig> getAll(); @Override List<String> getAllTypes(); @Override boolean delete(String name); @Override List<String> getAvailableEnrichments(); @Override List<String> getAvailableThreatTriageAggregators();  }
@Test public void getAvailableThreatTriageAggregatorsShouldReturnAggregators() { assertEquals(new ArrayList<String>() {{ add("MAX"); add("MIN"); add("SUM"); add("MEAN"); add("POSITIVE_MEAN"); }}, sensorEnrichmentConfigService.getAvailableThreatTriageAggregators()); }