private static final transient Log LOG = LogFactory.getLog(MisspelledRouteRefTest.class);
public void testApplicationContextFailed() {
try {
Main main = new Main();
main.setApplicationContextUri("org/apache/camel/spring/issues/MisspelledRouteRefTest.xml");
main.start();
fail("Should have thrown an exception");
} catch (Exception e) {
//expected but want to see what it looks like...
LOG.debug("Exception message : " + e.getMessage());
assertTrue("Get a wrong exception name", e.getMessage().indexOf("nested exception is org.apache.camel.CamelException: "