OK I simplified the test (removed xml read, set header with xpath etc) and got
the test pass.
I used "mockEndpointsAndSkip" in the setup and "getMockEndpoint" instead of an
instance variable mock.
Hope you can adapt it for your (complete) case.
Stephan
@Produce(uri = "direct:METARformatte
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: AdviceWi