LeaderElectionService { public void removeLeader() { jobNodeStorage.removeJobNodeIfExisted(ElectionNode.LEADER_HOST); } LeaderElectionService(final CoordinatorRegistryCenter coordinatorRegistryCenter, final JobConfiguration jobConfiguration); void leaderForceElection(); void leaderElection(); Boolean isLeader(); boolean hasLeader(); void removeLeader();  }
@Test public void assertRemoveLeader() { leaderElectionService.removeLeader(); verify(jobNodeStorage).removeJobNodeIfExisted("leader/election/host"); }