@Test
public void testGetInstances() throws Exception {

    String serviceName = "EtcdTest77Service";
    Assertions.assertTrue(etcdServiceDiscovery.getInstances(serviceName).isEmpty());
    etcdServiceDiscovery.register(new DefaultServiceInstance(valueOf(System.nanoTime()), serviceName, "127.0.0.1", 8080));
    etcdServiceDiscovery.register(new DefaultServiceInstance(valueOf(System.nanoTime()), serviceName, "127.0.0.1", 9809));
    Assertions.assertFalse(etcdServiceDiscovery.getInstances(serviceName).isEmpty());
    List<String> r = convertToIpPort(etcdServiceDiscovery.getInstances(serviceName));
    Assertions.assertTrue(r.contains("127.0.0.1:8080"));
    Assertions.assertTrue(r.contains("127.0.0.1:9809"));
}