@Override
    protected Endpoint createEndpoint(final String uri, final String remaining, final Map<String, Object> parameters)
            throws Exception {
        if (ObjectHelper.isEmpty(remaining)) {
            throw new IllegalArgumentException("You must provide a channel for the Dynamic Router");
        }
        DynamicRouterConfiguration configuration = new DynamicRouterConfiguration();
        configuration.setChannel(remaining);
        filterService.initializeChannelFilters(configuration.getChannel());
        DynamicRouterEndpoint endpoint = endpointFactorySupplier.get()
                .getInstance(uri, this, configuration, processorFactorySupplier, producerFactorySupplier, recipientListSupplier,
                        filterService);
        setProperties(endpoint, parameters);
        return endpoint;
    }
@Test
    void testCreateEndpointWithEmptyRemainingError() {
        component.setCamelContext(context);
        assertThrows(IllegalArgumentException.class,
                () -> component.createEndpoint("dynamic-router:testname", "", Collections.emptyMap()));
    }