CAMEL-7693 Added an unit test for it