@Test
public void testLoadCustomizersWithList() {

    CamelContext context = new DefaultCamelContext();
    NameCustomizer customizer = new NameCustomizer("from-registry");
    context.getRegistry().bind("name", customizer);
    List<ContextCustomizer> customizers = RuntimeSupport.configureContextCustomizers(context);
    assertThat(context.getName()).isNotEqualTo("from-registry");
    assertThat(context.getName()).isNotEqualTo("default");
    assertThat(customizers).hasSize(0);
    Properties properties = new Properties();
    properties.setProperty(Constants.PROPERTY_CAMEL_K_CUSTOMIZER, "name");
    context.getPropertiesComponent().setInitialProperties(properties);
    customizers = RuntimeSupport.configureContextCustomizers(context);
    assertThat(context.getName()).isEqualTo("from-registry");
    assertThat(customizers).hasSize(1);
}