Refined first attempt at a test - now fails when connectionTimeout for HTTP client is set to 2s and passes at 200ms.