PeerMasterMetaServerStateChangeHandler implements MetaServerStateChangeHandler { @Override public void peerMasterChanged(String dcId, String clusterId, String shardId) { peerMasterAdjustAction.adjustPeerMaster(clusterId, shardId); }  @Override void currentMasterChanged(String clusterId, String shardId); @Override void peerMasterChanged(String dcId, String clusterId, String shardId);  }
@Test public void testPeerMasterChanged() { peerMasterMetaServerStateChangeHandler.peerMasterChanged(dcId, clusterId, shardId); Mockito.verify(peerMasterAdjustAction, Mockito.times(1)).adjustPeerMaster(clusterId, shardId); }