@Test public void localServiceName_ignoredWhenGivenLocalEndpoint() {

  Endpoint endpoint = Endpoint.newBuilder().ip("1.2.3.4").serviceName("my-bar").build();
  tracer = Tracing.newBuilder().localServiceName("my-foo").endpoint(endpoint).build().tracer();
  MutableSpan defaultSpan = new MutableSpan();
  defaultSpan.localServiceName("my-bar");
  defaultSpan.localIp("1.2.3.4");
  assertThat(tracer).extracting("pendingSpans.defaultSpan").isEqualTo(defaultSpan);
}