  @Test
  public void writeJson_client_nameIsName() throws Exception {

    Span span = serverSpan.toBuilder()
        .kind(Span.Kind.CLIENT)
        .name("get /")
        .localEndpoint(Endpoint.newBuilder().serviceName("master").build())
        .build();

    String json = writeJson(span);
    assertThat(readString(json, "name")).isEqualTo("get /");
  }