MULE-6889: Adding test to verify behaviour