CAMEL-6890: Fixed test and little mistake in the sqs consumer.
Test doesnt work on IBM jdks