MappedMetricDataJsonSerde implements Serde<MappedMetricData> { @Override public Serializer<MappedMetricData> serializer() { return new Ser(); }  @Override void configure(Map<String, ?> map, boolean b); @Override void close(); @Override Serializer<MappedMetricData> serializer(); @Override Deserializer<MappedMetricData> deserializer();  }
@Test public void testSerialize() throws Exception { val expected = objectMapper.writeValueAsBytes(mappedMetricData); val actual = serdeUnderTest.serializer().serialize("some-topic", mappedMetricData); assertArrayEquals(expected, actual); }