Test for AsyncHttpClient/async-http-client/issues/471