Here are the examples of the java api class com.fasterxml.jackson.databind.annotation.JsonDeserialize taken from open source projects.
1. MediaIT#shouldCreateByteArrayFieldWithAnyEncoding()
Project: jsonschema2pojo
File: MediaIT.java
File: MediaIT.java
@Test public void shouldCreateByteArrayFieldWithAnyEncoding() throws SecurityException, NoSuchFieldException { Field field = classWithMediaProperties.getDeclaredField("anyBinaryEncoding"); JsonSerialize serAnnotation = field.getAnnotation(JsonSerialize.class); JsonDeserialize deserAnnotation = field.getAnnotation(JsonDeserialize.class); assertThat("any binary encoding field has type byte[]", field.getType(), equalToType(BYTE_ARRAY)); assertThat("any binary encoding has a serializer", serAnnotation, notNullValue()); assertThat("any binary encoding has a deserializer", deserAnnotation, notNullValue()); }