QuorumBean implements QuorumMXBean, ZKMBeanInfo { @Override public boolean isHidden() { return false; } QuorumBean(QuorumPeer peer); @Override String getName(); @Override boolean isHidden(); @Override int getQuorumSize(); @Override boolean isSslQuorum(); @Override boolean isPortUnification();  }
@Test public void testIsHiddenProperty() { QuorumPeer qpMock = mock(QuorumPeer.class); QuorumBean qb = new QuorumBean(qpMock); assertThat("isHidden should return false", qb.isHidden(), equalTo(false)); }