Just a quick guess to try: have you tried to replace the "to(output)" with "to("mock:outputFromFormatter")"?
Cheers Stephan -----Ursprüngliche Nachricht----- Von: Lukas Winkler [mailto:winklerlu...@gmail.com] Gesendet: Mittwoch, 2. August 2017 11:10 An: users@camel.apache.org Betreff: AdviceWith in test not followed Dear list, starting out with Camel and run into a problem when trying to test part of my camel context. Please find the test code as well as a snipped of the 'to test' route in the following gist: https://gist.github.com/ingwinlu/bb047cc409fb295b8d74b617ae04008c From the logs that are running I can see that the message I send through the test gets routed via the original path. Camel Version is Apache Camel 2.17.0.redhat-630187 BR and thanks for any help, Lukas