title: Simulate HTTP server time out for HTTP client request
body: <p>In reference to:
  <a href="https://stackoverflow.com/questions/2799938/httpurlconnection-timeout-question">HttpURLConnection timeout question</a></p>
  
  <p>-> Any idea on how to automate the unit test case for the above?</p>
  
  <p>More specifically, if the HTTP client has set 5 seconds as its timeout, I want the server to send the response after 10 seconds. This would ensure my client would fail due to time out and thus automating this scenario.</p>
  
  <p>I would appreciate the psuedo code for the server side (any light weight http server such as jetty or any other is fine).</p>