title: I want to verify that my camel consumer app is throwing specific exception via junit test
body: <pre><code> // custom exception
  
          public class customexception () {
  
          log.error("exception);
          }
  
      --- apache camel consumer app which has custom exception
  
          public consumer app implements Processor {
  
          //process &amp; validate
  
      @override
      public process(message) {
  
          if(condition met)
               throw customexception();
  
          }
         }
  
          // my junit test class
  
          @runwith(CamelSpringBootRunner)
          @springboottest
          public mytestclass {
  
  
          @Autowired
          ProducerTemplate producer;
  
          @Test
          public testexception () {
  
          producer.sendbody("invalid message");
  
          //??? assert customexception is thrown by consumer
  
          }
          }
  </code></pre>
  
  <p>Here Junit's expectedCondition will not work because I am not getting exception in test but standalone consumer app which is listening to the message produced by my test is throwing exception.</p>