@Test
public void testSslConfClassPathFirst() throws Exception {

  // Generate a valid ssl-client.xml into classpath.
  // This will be the preferred approach.
  Configuration conf = createConfiguration(false, true);
  // Injecting fake ssl config into input conf.
  conf.addResource(FAKE_SSL_CONFIG);
  // Classpath SSL config will be preferred if both input conf and
  // the classpath SSL config exist for backward compatibility.
  Configuration sslConfLoaded = SSLFactory.readSSLConfiguration(conf, CLIENT);
  String clientTsLoc = sslConfLoaded.get(getClientTrustStoreKeyName());
  assertNotEquals("trustStoreLocation", clientTsLoc);
  assertNotEquals(conf, sslConfLoaded);
}