@Override
    public URI getUri() {
        String format = "http://%s:%s";
        if (microServiceInstance.isSecure()) {
            format = "https://%s:%s";
        }
        return URI.create(String.format(Locale.ENGLISH, format, getHost(), getPort()));
    }
@Test
    public void testScheme() {
        DiscoveryServiceInstance instance = new DiscoveryServiceInstance(
                buildInstance(8001, true), serviceName);
        Assert.assertEquals(instance.getUri().getScheme(), "https");
        DiscoveryServiceInstance instanceHttp = new DiscoveryServiceInstance(
                buildInstance(8001, false), serviceName);
        Assert.assertEquals(instanceHttp.getUri().getScheme(), "http");
    }