### Question:
FactKafkaDeserializer implements Deserializer<FactSEB> { @Override public FactSEB deserialize(String topic, byte[] data) { if (data == null) return null; try { return READER.readValue(data); } catch (IOException ex) { LOGGER.error(ex, "Failed to deserialize FactSEB."); throw new UncheckedIOException("Failed to deserialize FactSEB.", ex); } }  @Override void configure(Map<String, ?> configs, boolean isKey); @Override FactSEB deserialize(String topic, byte[] data); @Override void close();  }### Answer:
@Test public void testDeserializeNull() throws Exception { assertNull(deserializer.deserialize("test", null)); assertNull(deserializer.deserialize("test", WRITER.writeValueAsBytes(null))); }
@Test public void testDeserializeObject() throws Exception { FactSEB expected = FactSEB.builder() .setId(UUID.randomUUID()) .build(); FactSEB actual = deserializer.deserialize("test", WRITER.writeValueAsBytes(expected)); assertNotNull(actual); assertEquals(expected.getId(), actual.getId()); }