Thanks! That helps a lot. Somehow, I can only mock with weaveBeId method:
weaveById("ReplaceBodyProcessor").replace().to("mock:ReplaceBodyProcessor"); then it is ReplaceBodyProcessor is skipped in test. If using weaveByToString(".*ReplaceBodyProcessor.*").replace().to("mock:ReplaceBodyProcessor"); or public String isMockEndpoints() {return "*";} my test fails. What am I doing wrong? -- View this message in context: http://camel.465427.n5.nabble.com/How-to-mock-a-processor-tp5741786p5741793.html Sent from the Camel - Users mailing list archive at Nabble.com.