myTemplate.sendBody("direct:start", "Hello World");
result.assertIsSatisfied();
DefaultTraceEventMessage em = tracer.getReceivedExchanges().get(0).getIn().getBody(DefaultTraceEventMessage.class);
assertEquals("Hello Camel", em.getBody());
assertEquals("String", em.getBodyType());
assertEquals(null, em.getCausedByException());
assertNotNull(em.getExchangeId());
assertNotNull(em.getShortExchangeId());
assertNotNull(em.getExchangePattern());
assertEquals("direct://start", em.getFromEndpointUri());
// there is always a breadcrumb header
assertNotNull(em.getHeaders());
assertNotNull(em.getProperties());
assertNull(em.getOutBody());
assertNull(em.getOutBodyType());
assertNull(em.getOutHeaders());
assertNull(em.getPreviousNode());
assertNotNull(em.getToNode());
assertNotNull(em.getTimestamp());
myTemplate.stop();
}