try {
template.sendBody("direct:b", "World");
fail("Should have thrown exception");
} catch (CamelExecutionException e) {
TypeConversionException cause = assertIsInstanceOf(TypeConversionException.class, e.getCause());
assertEquals(String.class, cause.getFromType());
assertEquals(int.class, cause.getToType());
assertEquals("true", cause.getValue());
}
assertMockEndpointsSatisfied();
}