@Test
public void testGet () throws IOException, InterruptedException
{

   InterruptibleHttpClient ihc = new InterruptibleHttpClient ();
   DummyChannel output = new DummyChannel ();
   String url = "http://localhost:" + String.valueOf (DummyHttpServer.start ()) + '/';
   HttpResponse response = ihc.interruptibleGet (url, output);
   DummyHttpServer.stop ();
   // The requested site must have a `Content-Length` header field and must not have a chunk-encoded body
   long contentlength = response.getEntity ().getContentLength ();
   Assert.assertEquals (contentlength, output.getRead ());
}