@Test (timeOut = 2000L)
public void testGetInterrupted () throws IOException, InterruptedException
{

   final InterruptibleHttpClient ihc = new InterruptibleHttpClient ();
   ServerSocket ss = new ServerSocket (0);
   final String url = "http://localhost:" + String.valueOf (ss.getLocalPort ()) + '/';
   Thread t = new Thread (new Runnable ()
   {
      @Override
      public void run ()
      {
         try
         {
            ihc.interruptibleGet (url, new DummyChannel ());
         }
         catch (IOException | InterruptedException ex)
         {
         }
      }
   });
   t.start ();
   Thread.sleep (1000L);
   t.interrupt ();
   ss.close ();
   t.join ();
}