My route looks like
My unit test looks like
It looks like the direct:end bit is never mocked so the assertion fails. It’s like @MockEndpoints is completely ignored.
There are workarounds described here http://camel.465427.n5.nabble.com/spring-boot-test-mocks-td5773902.html
There are disadvantages to these workarounds as listed in that thread. Thanks