assertEquals("No properties injected", properties.size(), 1);
assertEquals("Should get the value of org.apache.camel.test", properties.get("org.apache.camel.test"), "this is a test first");
}
public void testCamelTemplates() throws Exception {
DefaultProducerTemplate producer1 = getMandatoryBean(DefaultProducerTemplate.class, "producer1");
assertEquals("Inject a wrong camel context", producer1.getCamelContext().getName(), "camel1");
DefaultProducerTemplate producer2 = getMandatoryBean(DefaultProducerTemplate.class, "producer2");
assertEquals("Inject a wrong camel context", producer2.getCamelContext().getName(), "camel2");
DefaultConsumerTemplate consumer = getMandatoryBean(DefaultConsumerTemplate.class, "consumer");
assertEquals("Inject a wrong camel context", consumer.getCamelContext().getName(), "camel2");
}