@Test
public void testConfigureSSLAuthGetsConfiguredIfSecurePortConfigured()
        throws IOException, ConfigException {

    String sslAuthProp = "zookeeper.authProvider.x509";
    QuorumPeerConfig quorumPeerConfig = new QuorumPeerConfig();
    Properties zkProp = getDefaultZKProperties();
    zkProp.setProperty("secureClientPort", "12345");
    quorumPeerConfig.parseProperties(zkProp);
    String expected = "org.apache.zookeeper.server.auth.X509AuthenticationProvider";
    String result = System.getProperty(sslAuthProp);
    assertEquals(expected, result); 
}