LeaderBean extends ZooKeeperServerBean implements LeaderMXBean { public String getName() { return "Leader"; } LeaderBean(Leader leader, ZooKeeperServer zks); String getName(); String getCurrentZxid(); String followerInfo(); @Override long getElectionTimeTaken(); @Override int getLastProposalSize(); @Override int getMinProposalSize(); @Override int getMaxProposalSize(); @Override void resetProposalStatistics();  }
@Test public void testGetName() { assertEquals("Leader", leaderBean.getName()); }