@Test
public void testRestart() throws Exception {

  RestartableHttpClient client = new RestartableHttpClient(mockAuth, true, mockParams, defaultSchemeRegistry);
  client.setup();
  client.restart();
  try {
    client.execute(request); // used to crash, https://github.com/twitter/hbc/issues/113
    fail("should not reach here");
  } catch (UnknownHostException e) {
    // expected
  }
}