AbstractPredictionConfig implements org.kie.kogito.prediction.PredictionConfig { public PredictionEventListenerConfig predictionEventListeners() { return predictionEventListener; } protected  AbstractPredictionConfig(
            Iterable<PredictionEventListenerConfig> predictionEventListenerConfigs); PredictionEventListenerConfig predictionEventListeners();  }
@Test void predictionEventListenersWithoutPredictionEventListenerConfigs() { AbstractPredictionConfig abstractPredictionConfig = getAbstractPredictionConfig(null); assertNull(abstractPredictionConfig.predictionEventListeners()); }
@Test void predictionEventListenersWithPredictionEventListenerConfigs() { final List<PredictionEventListenerConfig> predictionEventListenerConfigs = IntStream .range(0,3) .mapToObj(i -> getPredictionEventListenerConfig()) .collect(Collectors.toList()); AbstractPredictionConfig abstractPredictionConfig = getAbstractPredictionConfig(predictionEventListenerConfigs); assertEquals(predictionEventListenerConfigs.get(0), abstractPredictionConfig.predictionEventListeners()); }