@Test protected void endTsInsideTheTrace(TestInfo testInfo) throws Exception {
    String testSuffix = testSuffix(testInfo);
    List<Span> trace = newTrace(testSuffix);

    processDependencies(trace);

    assertThat(store().getDependencies(startTs(trace) + 100, 200).execute())
      .containsExactlyInAnyOrderElementsOf(links(testSuffix));
  }
Ensure complete traces are aggregated, even if they complete after endTs
zipkin-tests/src/main/java/zipkin2/storage/ITDependencies.java