@Test
public void testGetLeaderHostName() throws KeeperException,
    InterruptedException {

  LeaderElectionSupport electionSupport = createLeaderElectionSupport();
  electionSupport.start();
  // Sketchy: We assume there will be a leader (probably us) in 3 seconds.
  Thread.sleep(3000);
  String leaderHostName = electionSupport.getLeaderHostName();
  Assert.assertNotNull(leaderHostName);
  Assert.assertEquals("foohost", leaderHostName);
  electionSupport.stop();
}