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

    accept(trace);

    //  - Note: Using the smallest lookback avoids bumping into implementation around windowing.
    long lookback = trace.get(0).durationAsLong() / 1000L;
    assertGetTracesReturns(
      requestBuilder().endTs(endTs(trace)).lookback(lookback).build(),
      trace);
  }
Ensure complete traces are aggregated, even if they complete after endTs
zipkin-tests/src/main/java/zipkin2/storage/ITSpanStore.java