WebServiceClient { public static WebServiceClient getWebServiceClient() { return instance; }  static void initialize(Configuration conf); static WebServiceClient getWebServiceClient(); Client createClient(); synchronized static void destroy();  }
@Test public void testGetWebServiceClient() throws Exception { Configuration conf = new Configuration(); conf.set(YarnConfiguration.YARN_HTTP_POLICY_KEY, "HTTPS_ONLY"); WebServiceClient.initialize(conf); WebServiceClient client = WebServiceClient.getWebServiceClient(); Assert.assertNotNull(client.getSSLFactory()); WebServiceClient.destroy(); }