@Test(expected = ConfigException.class)
public void testSamePortConfiguredForClientAndElection() throws IOException, ConfigException {

    QuorumPeerConfig quorumPeerConfig = new QuorumPeerConfig();
    Properties zkProp = getDefaultZKProperties();
    zkProp.setProperty("server.1", "localhost:2888:2888");
    quorumPeerConfig.parseProperties(zkProp);
}