@Test public void startScopedSpan_overrideName() {

  ScopedSpan scoped = tracer.startScopedSpan("foo");
  try {
    scoped.name("bar");
  } finally {
    scoped.finish();
  }
  assertThat(spans.get(0).name()).isEqualTo("bar");
}