ProducerTemplate template = context.createProducerTemplate();
template.sendBodyAndHeader("direct:put", "TEST1", KratiConstants.KEY, "1");
template.sendBodyAndHeader("direct:put", "TEST2", KratiConstants.KEY, "2");
template.sendBodyAndHeader("direct:put", "TEST3", KratiConstants.KEY, "3");
template.requestBodyAndHeader("direct:deleteall", null, KratiConstants.KEY, "3");
Object result = template.requestBodyAndHeader("direct:get", null, KratiConstants.KEY, "1");
assertEquals(null, result);
result = template.requestBodyAndHeader("direct:get", null, KratiConstants.KEY, "2");
assertEquals(null, result);
result = template.requestBodyAndHeader("direct:get", null, KratiConstants.KEY, "3");
assertEquals(null, result);