public synchronized List<ProducerRecord<K, V>> history() {
        return new ArrayList<>(this.sent);
    }
Get the list of sent records since the last call to {@link #clear()}
clients/src/main/java/org/apache/kafka/clients/producer/MockProducer.java