@Test
public void shouldDoNothingIfNotEnabled() {

    // given
    TestPropertyValues.of("edison.serviceregistry.enabled=false").applyTo(context);
    context.register(ApplicationInfoConfiguration.class);
    context.register(AsyncHttpRegistryClient.class);
    context.refresh();
    // when
    RegistryClient bean = context.getBean(RegistryClient.class);
    assertThat(bean.isRunning(), is(false));
}