@Test
public void testStatusChecker() {

    RegistryStatusChecker registryStatusChecker = new RegistryStatusChecker();
    Status status = registryStatusChecker.check();
    assertThat(status.getLevel(), is(Status.Level.UNKNOWN));
    Registry registry = consulRegistryFactory.getRegistry(registryUrl);
    assertThat(registry, not(nullValue()));
    status = registryStatusChecker.check();
    assertThat(status.getLevel(), is(Status.Level.OK));
    registry.register(serviceUrl);
    status = registryStatusChecker.check();
    assertThat(status.getLevel(), is(Status.Level.OK));
}