public void testXsltOutputFileMissingHeader() throws Exception {
try {
template.sendBody("direct:start", "<hello>world!</hello>");
fail("Should thrown exception");
} catch (CamelExecutionException e) {
NoSuchHeaderException nshe = assertIsInstanceOf(NoSuchHeaderException.class, e.getCause());
assertEquals(Exchange.XSLT_FILE_NAME, nshe.getHeaderName());
}
}