public static long endTs(List<Span> trace) {
    return startTs(trace) + trace.get(0).durationAsLong() / 1000L;
  }
Only for unit tests, not integration tests. Integration tests should use random trace IDs.
zipkin-tests/src/main/java/zipkin2/TestObjects.java