@Test
public void testBindingPropertiesOverriddenByCamelConfiguration() {

	BindingServiceProperties BindingServiceProperties = new BindingServiceProperties();
	BindingServiceProperties.setInstanceCount(2);
	BindingServiceProperties.setInstanceIndex(1);
	BindingServiceProperties.setDefaultBinder("default");
	CamelConfigurableBindingServiceProperties properties = new CamelConfigurableBindingServiceProperties(
			BindingServiceProperties);
	SpringCloudStreamEndpointConfiguration camelConfiguration = new SpringCloudStreamEndpointConfiguration();
	camelConfiguration.setInstanceCount(1);
	camelConfiguration.setInstanceIndex(0);
	properties.setCamelConfiguration(camelConfiguration, "input");
	assertThat(properties.getInstanceCount()).isEqualTo(1);
	assertThat(properties.getInstanceIndex()).isEqualTo(0);
	assertThat(properties.getDefaultBinder()).isEqualTo("default");
}