@Test void providesBasicAuthInterceptor_whenInvalidDynamicCredentialsConfigured() {
    assertThatExceptionOfType(BeanCreationException.class).isThrownBy(() -> {
      String credentialsFile = pathOfResource("es-credentials-invalid");
      TestPropertyValues.of(
        "zipkin.storage.type:elasticsearch",
        "zipkin.storage.elasticsearch.hosts:127.0.0.1:1234",
        "zipkin.storage.elasticsearch.credentials-file:" + credentialsFile,
        "zipkin.storage.elasticsearch.credentials-refresh-interval:2")
        .applyTo(context);
      Access.registerElasticsearch(context);
      context.refresh();
    });
  }
Ensures we can wire up network interceptors, such as for logging or authentication
zipkin-server/src/test/java/zipkin2/server/internal/elasticsearch/ZipkinElasticsearchStorageConfigurationTest.java