static long rowCountForTags(CassandraStorage storage) {
    return storage
      .session()
      .execute("SELECT COUNT(*) from " + Schema.TABLE_AUTOCOMPLETE_TAGS)
      .one()
      .getLong(0);
  }
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