public String getServerId() {
        return server.getInstanceInfo().getId();
    }
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