JacksonSerializationFactory implements JsonSerializationFactory { @Override public <T extends Entity> JsonDeserializer<T> deserializer(final Class<T> clazz) { return new JacksonJsonDeserializer<>(mapper, clazz); }  @Override JsonSerializer<T> serializer(final Class<T> clazz); @Override JsonDeserializer<T> deserializer(final Class<T> clazz);  }
@Test public void shouldCreateDeserializer() { assertEquals(JacksonJsonDeserializer.class, factory.deserializer(Animal.class).getClass()); }