@Override
  public List<?> deserialize(final String topic, final byte[] bytes) {
    if (bytes == null) {
      return null;
    }

    final Object single = inner.deserialize(topic, bytes);
    return Collections.singletonList(single);
  }
@Test
  public void shouldDeserializeOldStyleNulls() {
    // When:
    final List<?> result = deserializer.deserialize(TOPIC, null);

    // Then:
    assertThat(result, is(nullValue()));
  }