@Test
public void testAppendSSLWithGlobalKeystore() throws Exception {

  System.setProperty("javax.net.ssl.keyStore", "src/test/resources/keystorefile.jks");
  System.setProperty("javax.net.ssl.keyStorePassword", "password");
  System.setProperty("javax.net.ssl.keyStoreType", "JKS");
  Context context = new Context();
  channel.configure(context);
  configureSource();
  context.put(ThriftSource.CONFIG_BIND, "0.0.0.0");
  context.put(ThriftSource.CONFIG_PORT, String.valueOf(port));
  context.put("ssl", "true");
  Configurables.configure(source, context);
  doAppendSSL();
  System.clearProperty("javax.net.ssl.keyStore");
  System.clearProperty("javax.net.ssl.keyStorePassword");
  System.clearProperty("javax.net.ssl.keyStoreType");
}