LeaderService { public void removeLeader() { jobNodeStorage.removeJobNodeIfExisted(LeaderNode.INSTANCE); } LeaderService(final CoordinatorRegistryCenter regCenter, final String jobName); void electLeader(); boolean isLeaderUntilBlock(); boolean isLeader(); boolean hasLeader(); void removeLeader();  }
@Test public void assertRemoveLeader() { leaderService.removeLeader(); verify(jobNodeStorage).removeJobNodeIfExisted("leader/election/instance"); }