CAMEL-6991: Added unit test