@BeforeClass
  public static void initializeTests() throws Exception {
    trustStoreFile = File.createTempFile("truststore", ".jks");
    serverSSLConfig1 =
        new SSLConfig(TestSSLUtils.createSslProps("DC2,DC3", SSLFactory.Mode.SERVER, trustStoreFile, "server1"));
    serverSSLConfig2 =
        new SSLConfig(TestSSLUtils.createSslProps("DC1,DC3", SSLFactory.Mode.SERVER, trustStoreFile, "server2"));
    serverSSLConfig3 =
        new SSLConfig(TestSSLUtils.createSslProps("DC1,DC2", SSLFactory.Mode.SERVER, trustStoreFile, "server3"));
    VerifiableProperties sslClientProps =
        TestSSLUtils.createSslProps("DC1,DC2,DC3", SSLFactory.Mode.CLIENT, trustStoreFile, "client");
    sslConfig = new SSLConfig(sslClientProps);
    sslEnabledClusterMapConfig = new ClusterMapConfig(sslClientProps);
    Properties props = new Properties();
    props.setProperty("clustermap.cluster.name", "test");
    props.setProperty("clustermap.datacenter.name", "dc1");
    props.setProperty("clustermap.host.name", "localhost");
    plainTextClusterMapConfig = new ClusterMapConfig(new VerifiableProperties(props));
    sslFactory = SSLFactory.getNewInstance(sslConfig);
    SSLContext sslContext = sslFactory.getSSLContext();
    sslSocketFactory = sslContext.getSocketFactory();
  }
Run only once for all tests
ambry-network/src/test/java/com/github/ambry/network/BlockingChannelConnectionPoolTest.java