public Map<FeatureOption, MergingStrategy> computeMergingStrategies(
            List<SqlTableLikeOption> mergingOptions) {

        Map<FeatureOption, MergingStrategy> result = new HashMap<>(defaultMergingStrategies);

        Optional<SqlTableLikeOption> maybeAllOption =
                mergingOptions.stream()
                        .filter(option -> option.getFeatureOption() == FeatureOption.ALL)
                        .findFirst();

        maybeAllOption.ifPresent(
                (allOption) -> {
                    MergingStrategy strategy = allOption.getMergingStrategy();
                    for (FeatureOption featureOption : FeatureOption.values()) {
                        if (featureOption != FeatureOption.ALL) {
                            result.put(featureOption, strategy);
                        }
                    }
                });

        for (SqlTableLikeOption mergingOption : mergingOptions) {
            result.put(mergingOption.getFeatureOption(), mergingOption.getMergingStrategy());
        }

        return result;
    }
@Test
    void includingAllMergeStrategyExpansion() {
        List<SqlTableLikeOption> inputOptions =
                Collections.singletonList(
                        new SqlTableLikeOption(MergingStrategy.INCLUDING, FeatureOption.ALL));

        Map<FeatureOption, MergingStrategy> mergingStrategies =
                util.computeMergingStrategies(inputOptions);

        assertThat(mergingStrategies.get(FeatureOption.OPTIONS))
                .isEqualTo(MergingStrategy.INCLUDING);
        assertThat(mergingStrategies.get(FeatureOption.PARTITIONS))
                .isEqualTo(MergingStrategy.INCLUDING);
        assertThat(mergingStrategies.get(FeatureOption.CONSTRAINTS))
                .isEqualTo(MergingStrategy.INCLUDING);
        assertThat(mergingStrategies.get(FeatureOption.GENERATED))
                .isEqualTo(MergingStrategy.INCLUDING);
        assertThat(mergingStrategies.get(FeatureOption.WATERMARKS))
                .isEqualTo(MergingStrategy.INCLUDING);
    }