@Test void insertEntry_niceToString() {
    // This test can use fake data as it is never written to cassandra
    AggregateCall<?, ?> acceptCall =
      (AggregateCall<?, ?>) storage.spanConsumer().accept(List.of(CLIENT_SPAN));

    List<Call<?>> insertEntryCalls = acceptCall.delegate().stream()
      .filter(c -> c instanceof InsertEntry)
      .collect(Collectors.toList());

    assertThat(insertEntryCalls.get(0))
      .hasToString("INSERT INTO span_by_service (service, span) VALUES (frontend,get)");
    assertThat(insertEntryCalls.get(1))
      .hasToString(
        "INSERT INTO remote_service_by_service (service, remote_service) VALUES (frontend,backend)");
  }
It is easier to use a real Cassandra connection than mock a prepared statement.
zipkin-storage/cassandra/src/test/java/zipkin2/storage/cassandra/ITSpanConsumer.java