look at this q/a http://sqa.stackexchange.com/questions/20137/htmlunit-driver-error
I checked the url that you have mentioned. (http://sqa.stackexchange.com/questions/20137/htmlunit-driver-error)
It was mentioned there as:
To see which jar is being used:
System.out.println(HttpClientBuilder.class.getProtectionDomain().getCodeSource().getLocation());
It should be "httpclient-4.5.2.jar"
I checked using the above code and found that the HttpClient version that I was using was httpclient-4.5.1.jar.
I download httpclient-4.5.2.jar and change the config to httpclient-4.5.2.jar.
But now I'm not getting any error, but instead of getting the page title.. I get the output as "Proxy Warning".
What else steps do I need to do?