CAMEL-7208: Fixed the 2 broken tests being backported to the 2.12.x
branch. The failure is a side effect of CAMEL-6938 not being backported
to the 2.12.x branch.