@Test
public void testLookup() throws InterruptedException {

    List<URL> lookup = consulRegistry.lookup(serviceUrl);
    assertThat(lookup.size(), is(0));
    consulRegistry.register(serviceUrl);
    Thread.sleep(5000);
    lookup = consulRegistry.lookup(serviceUrl);
    assertThat(lookup.size(), is(1));
}