MetricDataMessagePackSerde implements Serde<MetricData> { @Override public Deserializer<MetricData> deserializer() { return new Deser(); }  @Override void configure(Map<String, ?> configs, boolean isKey); @Override void close(); @Override Serializer<MetricData> serializer(); @Override Deserializer<MetricData> deserializer();  }
@Test public void testDeserialize_invalidMetricDataBytes() { val actual = serdeUnderTest.deserializer().deserialize("some-topic", "hey".getBytes()); assertNull(actual); }