@VisibleForTesting
    static Set<String> getIncludedFailureEnrichers(final Configuration configuration) {
        final String includedEnrichersString =
                configuration.get(JobManagerOptions.FAILURE_ENRICHERS_LIST, "");
        return enricherListPattern
                .splitAsStream(includedEnrichersString)
                .filter(r -> !r.isEmpty())
                .collect(Collectors.toSet());
    }
@Test
    public void testGetIncludedFailureEnrichers() {
        Configuration conf = new Configuration();

        // Disabled feature
        conf.set(JobManagerOptions.FAILURE_ENRICHERS_LIST, "");
        Set<String> result = FailureEnricherUtils.getIncludedFailureEnrichers(conf);
        assertThat(result).hasSize(0);

        // Single enricher
        conf.set(JobManagerOptions.FAILURE_ENRICHERS_LIST, "enricher1");
        result = FailureEnricherUtils.getIncludedFailureEnrichers(conf);
        assertThat(result).hasSize(1);
        assertThat(result).contains("enricher1");

        // Multiple enrichers with spaces
        conf.set(JobManagerOptions.FAILURE_ENRICHERS_LIST, "enricher1, enricher2, enricher3");
        result = FailureEnricherUtils.getIncludedFailureEnrichers(conf);
        assertThat(result).hasSize(3);
        assertThat(result).contains("enricher1", "enricher2", "enricher3");

        // Bad delimiter
        conf.set(JobManagerOptions.FAILURE_ENRICHERS_LIST, "enricher1. enricher2. enricher3");
        result = FailureEnricherUtils.getIncludedFailureEnrichers(conf);
        assertThat(result).hasSize(1);
        assertThat(result).contains("enricher1. enricher2. enricher3");

        // Multiple enrichers with spaces and empty values
        conf.set(JobManagerOptions.FAILURE_ENRICHERS_LIST, "enricher1, ,enricher2,   enricher3");
        result = FailureEnricherUtils.getIncludedFailureEnrichers(conf);
        assertThat(result).hasSize(3);
        assertThat(result).contains("enricher1", "enricher2", "enricher3");
    }