[RESTEASY-1043] ClientProtocolException resulting from HttpClient connection handling bug HTTPCLIENT-1340

added test