@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());
}