CAMEL-7450 Added an unit test based on ccancellieri's patch