@Test
public void testSerialize() throws Exception {

    val expected = objectMapper.writeValueAsBytes(mappedMetricData);
    val actual = serdeUnderTest.serializer().serialize("some-topic", mappedMetricData);
    assertArrayEquals(expected, actual);
}