HTTPCLIENT-1199: Added unit test to verify Oleg's recent fix. We still do not properly handle the redirect case, however.