@Test
public void testGetQuorumSizeProperty() {

    QuorumPeer qpMock = mock(QuorumPeer.class);
    QuorumBean qb = new QuorumBean(qpMock);
    when(qpMock.getQuorumSize()).thenReturn(5);
    assertThat("getQuorumSize property should return value of peet.getQuorumSize()", qb.getQuorumSize(), equalTo(5));
}