@Test protected void getRemoteServiceNames_dedupes(TestInfo testInfo) throws Exception {
    String testSuffix = testSuffix(testInfo);
    List<Span> spans = IntStream.rangeClosed(0, 50)
      .mapToObj(i -> spanBuilder(testSuffix).remoteEndpoint(BACKEND).build())
      .collect(Collectors.toList());
    accept(spans);

    assertThat(names().getRemoteServiceNames(spans.get(0).localServiceName()).execute())
      .containsExactly(BACKEND.serviceName());
  }
Ensures the service name index returns distinct results
zipkin-tests/src/main/java/zipkin2/storage/ITServiceAndSpanNames.java