QuorumConfig { public QuorumConfig(){ } QuorumConfig();  QuorumConfig(int total, int quorum); int getTotal(); void setTotal(int total); int getQuorum(); void setQuorum(int quorum); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testQuorumConfig(){ QuorumConfig config1 = new QuorumConfig(5, 3); QuorumConfig config2 = new QuorumConfig(5, 3); QuorumConfig config3 = new QuorumConfig(5, 4); Assert.assertEquals(config1, config2); Assert.assertNotEquals(config1, config3); }