### Question:
LeaderBean extends ZooKeeperServerBean implements LeaderMXBean { public String getCurrentZxid() { return "0x" + Long.toHexString(zks.getZxid()); } LeaderBean(Leader leader, ZooKeeperServer zks); String getName(); String getCurrentZxid(); String followerInfo(); @Override String nonVotingFollowerInfo(); @Override long getElectionTimeTaken(); @Override int getLastProposalSize(); @Override int getMinProposalSize(); @Override int getMaxProposalSize(); @Override void resetProposalStatistics(); @Override int getMaxConcurrentSnapSyncs(); @Override void setMaxConcurrentSnapSyncs(int maxConcurrentSnapshots); @Override int getMaxConcurrentDiffSyncs(); @Override void setMaxConcurrentDiffSyncs(int maxConcurrentDiffSyncs);  }### Answer:
@Test public void testGetCurrentZxid() { zks.setZxid(1); assertEquals("0x1", leaderBean.getCurrentZxid()); }