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