Willem, I've created CAMEL-5494 <https://issues.apache.org/jira/browse/CAMEL-5494> for this and attached the code and a test case.
Thanks, -Joshua Willem.Jiang wrote It look like your attachment does't show in mail. Can you create a small test case and attached the files to the Camel JIRA[1]? It could be great, if you patch can be a part of Camel Spring Test framework.