@Test
public void testHTTPSViaRibbon() {

  Client trustSSLSockets = new Client.Default(TrustingSSLSocketFactory.get(), null);
  server1.useHttps(TrustingSSLSocketFactory.get("localhost"), false);
  server1.enqueue(new MockResponse().setBody("success!"));
  getConfigInstance().setProperty(serverListKey(), hostAndPort(server1.url("").url()));
  TestInterface api =
      Feign.builder().client(RibbonClient.builder().delegate(trustSSLSockets).build())
          .target(TestInterface.class, "https://" + client());
  api.post();
  assertEquals(1, server1.getRequestCount());
}