### Question:
EurekaUtils { public static final String getUrl(InstanceInfo instanceInfo) { if (instanceInfo.getSecurePort() == 0) { return "http: } else { return "https: } } private  EurekaUtils(); static final String getServiceIdFromInstanceId(String instanceId); static final String getUrl(InstanceInfo instanceInfo);  }### Answer:
@Test public void testGetUrl() { InstanceInfo ii1 = createInstanceInfo("hostname1", 80, 0); InstanceInfo ii2 = createInstanceInfo("locahost", 80, 443); assertEquals("http: assertEquals("https: }