CAMEL-7871 fixed test error.

previous my commit broke  junit test.