CAMEL-7314 Fixed the test error of camel-http4 with JDK8