static AggregationStrategy createAggregationStrategy(CamelContext camelContext, DynamicRouterConfiguration cfg) {
        AggregationStrategy strategy = Optional.ofNullable(cfg.getAggregationStrategyBean())
                .or(() -> Optional.ofNullable(cfg.getAggregationStrategy())
                        .map(ref -> lookupByNameAndType(camelContext, ref, Object.class)
                                .map(aggStr -> convertAggregationStrategy.apply(aggStr, cfg))
                                .orElseThrow(() -> new IllegalArgumentException(
                                        "Cannot find AggregationStrategy in Registry with name: " +
                                                                                cfg.getAggregationStrategy()))))
                .orElse(new NoopAggregationStrategy());
        CamelContextAware.trySetCamelContext(strategy, camelContext);
        return cfg.isShareUnitOfWork() ? new ShareUnitOfWorkAggregationStrategy(strategy) : strategy;
    }
@Test
    void testCreateAggregationStrategyWithShareUnitOfWorkStrategy() {
        when(mockConfig.isShareUnitOfWork()).thenReturn(true);
        AggregationStrategy strategy = DynamicRouterRecipientListHelper.createAggregationStrategy(camelContext, mockConfig);
        Assertions.assertNotNull(strategy);
    }