title: Testing the Apache Camel Route with Transaction
body: <p>I am having camel route with transacted() with policy. During my JUnit test, I do not want to test transaction behaviour in the route. I am trying to remove it using:</p>
  
  <pre><code>weaveByType(TransactedDefinition.class).remove();
  </code></pre>
  
  <p>but it errors out saying:</p>
  
  <pre><code>java.lang.IllegalArgumentException: There are no outputs which matches: TransactedDefinition in the route.
  </code></pre>
  
  <p>Is there any way I can remove the transaction from my camel route
  in a better way? </p>