I have written a simple apache camel project which will eventually be deployed in a FUSE container. For now, I\'m simply trying to get a basic unit test working. I\'m usin
Turns out that a routeContext only exists in the context of xml dsl, and cannot be referenced from the Java DSL. This in my opinion is a bug, since it restricts the flexibility of mixing xml and java configuration.
By changing the routeContext to a camelContext, this fixed the problem.
See also this question: Camel: importing routeContext into an external camelContext
Also related: https://issues.apache.org/jira/browse/CAMEL-5717