ElectionNode { boolean isLeaderHostPath(final String path) { return jobNodePath.getFullPath(LEADER_HOST).equals(path); } ElectionNode(final String jobName);  static final String ROOT; }
@Test public void assertIsShardingTotalCountPath() { assertTrue(electionNode.isLeaderHostPath("/testJob/leader/election/host")); }
@Test public void assertIsNotShardingTotalCountPath() { assertFalse(electionNode.isLeaderHostPath("/testJob/leader/election/host1")); }