JsonDeserializerWrapper implements Deserializer<T> { @Override public void configure(Map<String, ?> configs, boolean isKey) { } JsonDeserializerWrapper(Class<T> clazz); @Override void configure(Map<String, ?> configs, boolean isKey); @Override @SuppressWarnings("unchecked") // user must make sure the deserialization is to the right type T deserialize(String topic, byte[] data); @Override void close();  }
@Test public void configure() { jsonDeserializerWrapper.configure(null, false); }