protected BundleContext bundleContext;
@Test
public void testProducerConsumerAndIdempotent() throws Exception {
getInstalledBundle("CamelBlueprintKratiTestBundle").start();
BlueprintContainer ctn = getOsgiService(BlueprintContainer.class, "(osgi.blueprint.container.symbolicname=CamelBlueprintKratiTestBundle)", 10000);
CamelContext ctx = getOsgiService(CamelContext.class, "(camel.context.symbolicname=CamelBlueprintKratiTestBundle)", 10000);
MockEndpoint mock = (MockEndpoint) ctx.getEndpoint("mock:results");
ProducerTemplate template = ctx.createProducerTemplate();
mock.expectedMessageCount(2);
template.sendBodyAndHeader("direct:put", new SomeObject("1", "Test 1"), KratiConstants.KEY, "1");