I think the user wants to set the response message by leveraging the mock endpoint. It could be easier by using sending intercepter.
2012/9/21, Henryk Konsek <hekon...@gmail.com>: > Hi guys, > >> from("direct:start").process(new >> ClassThatGeneratesDynamicUriHeader()).recipientList(header("DynamicURI")); > > In in opinion using Mock component to validate that class generating > the endpoint address for recipient list is not a way to go. > > What you try to do now is to test whether Recipient List works as it > ought to. In other words you are testing Camel core (which already got > pretty good test coverage) :) . > > Just create good unit test for ClassThatGeneratesDynamicUriHeader. If > ClassThatGeneratesDynamicUriHeader is well tested, you can be sure > that recipient list will work as expected. > > -- > Henryk Konsek > http://henryk-konsek.blogspot.com >