@Test(timeout=20000)
public void testConnectTimeout() throws BadFencingConfigurationException {

  Configuration conf = new Configuration();
  conf.setInt(SshFenceByTcpPort.CONF_CONNECT_TIMEOUT_KEY, 3000);
  SshFenceByTcpPort fence = new SshFenceByTcpPort();
  fence.setConf(conf);
  assertFalse(fence.tryFence(UNFENCEABLE_TARGET, ""));
}