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