// we send in a Date object which cannot be converted to XML so it should fail
try {
template.requestBody("direct:start", new Date());
fail("Should have thrown an exception");
} catch (CamelExecutionException e) {
NoTypeConversionAvailableException ntae = assertIsInstanceOf(NoTypeConversionAvailableException.class, e.getCause().getCause());
assertEquals(Date.class, ntae.getFromType());
assertEquals(Document.class, ntae.getToType());
assertNotNull(ntae.getValue());
assertNotNull(ntae.getMessage());
}
assertMockEndpointsSatisfied();
}