@Test protected void endTsAndLookbackMustBePositive() {
    SpanStore store = store();
    assertThatThrownBy(() -> store.getDependencies(0L, DAY))
      .isInstanceOf(IllegalArgumentException.class)
      .hasMessage("endTs <= 0");

    assertThatThrownBy(() -> store.getDependencies(TODAY, 0L))
      .isInstanceOf(IllegalArgumentException.class)
      .hasMessage("lookback <= 0");
  }
This tests we error prior to executing the call.
zipkin-tests/src/main/java/zipkin2/storage/ITDependencies.java