@Test
public void testLoadCustomizerOrder() {

    DefaultCamelContext context = new DefaultCamelContext();
    context.setName("camel");
    context.getRegistry().bind("c1", new ContextCustomizer() {
        @Override
        public int getOrder() {
            return Ordered.LOWEST;
        }
        @Override
        public void apply(CamelContext camelContext) {
            camelContext.setNameStrategy(new ExplicitCamelContextNameStrategy(camelContext.getName() + "-c1"));
        }
    });
    context.getRegistry().bind("c2", new ContextCustomizer() {
        @Override
        public int getOrder() {
            return Ordered.HIGHEST;
        }
        @Override
        public void apply(CamelContext camelContext) {
            camelContext.setNameStrategy(new ExplicitCamelContextNameStrategy(camelContext.getName() + "-c2"));
        }
    });
    context.getRegistry().bind("c3", new ContextCustomizer() {
        @Override
        public void apply(CamelContext camelContext) {
            camelContext.setNameStrategy(new ExplicitCamelContextNameStrategy(camelContext.getName() + "-c3"));
        }
    });
    Properties properties = new Properties();
    properties.setProperty("camel.k.customizer.c1.enabled", "true");
    properties.setProperty("camel.k.customizer.c2.enabled", "true");
    properties.setProperty("camel.k.customizer.c3.enabled", "true");
    context.getPropertiesComponent().setInitialProperties(properties);
    List<ContextCustomizer> customizers = RuntimeSupport.configureContextCustomizers(context);
    assertThat(customizers).hasSize(3);
    assertThat(context.getName()).isEqualTo("camel-c2-c3-c1");
}