CAMEL-7314 Fixed the test errors of itest with JDK8
CAMEL-7436 fixed the unit test error of camel-example-cxf-proxy