@Test
public void testCustomSSLAuth() throws IOException {

    try (ClientX509Util x509Util = new ClientX509Util()) {
        System.setProperty(x509Util.getSslAuthProviderProperty(), "y509");
        QuorumPeerConfig quorumPeerConfig = new QuorumPeerConfig();
        try {
            Properties zkProp = getDefaultZKProperties();
            zkProp.setProperty("secureClientPort", "12345");
            quorumPeerConfig.parseProperties(zkProp);
            fail("ConfigException is expected");
        } catch (ConfigException e) {
            assertNotNull(e.getMessage());
        }
    }
}