@Test
public void shouldNotTouchRecords() {

  //Given
  final Map<TopicPartition, List<ConsumerRecord<String, String>>> topicPartitionAndRecords = new HashMap<>();
  final ConsumerRecord<String, String> record = new ConsumerRecord<>("topic", 0, 0L, "k", "v");
  topicPartitionAndRecords.put(
      new TopicPartition("topic", 0),
      Collections.singletonList(record));
  final ConsumerRecords<String, String> records = new ConsumerRecords<>(topicPartitionAndRecords);
  final TracingConsumerInterceptor<String, String> interceptor = new TracingConsumerInterceptor<>();
  interceptor.configure(map);
  //When
  final ConsumerRecords tracedRecords = interceptor.onConsume(records);
  //Then
  assertEquals(records, tracedRecords);
}