public ScopedSpan startScopedSpan(String name) {
    return startScopedSpanWithParent(name, currentTraceContext.get());
  }
@Test void startScopedSpan_overrideName() {
    ScopedSpan scoped = tracer.startScopedSpan("foo");
    try {
      scoped.name("bar");
    } finally {
      scoped.finish();
    }

    assertThat(spans.get(0).name()).isEqualTo("bar");
  }