@VisibleForTesting
    public static DiscoveryResult from(InstanceInfo instanceInfo, boolean useSecurePort) {
        DiscoveryEnabledServer server = new DiscoveryEnabledServer(instanceInfo, useSecurePort);
        return new DiscoveryResult(server);
    }
This convenience method exists for usage in tests. For production usage, please use the constructor linked:

@see DiscoveryResult#DiscoveryResult(DiscoveryEnabledServer, LoadBalancerStats)
zuul-discovery/src/main/java/com/netflix/zuul/discovery/DiscoveryResult.java