@Test
public void testExtract_nullMetricData() {

    val record = new ConsumerRecord<Object, Object>("some-topic", 1, 0, "some-key", null);
    val actualTimestamp = new MetricDataTimestampExtractor().extract(record, -1L);
    assertTrue(actualTimestamp < 0L);
}