SchemaDeserializer extends JsonDeserializer<Schema> { @Override public Class<?> handledType() { return Schema.class; }  @Override Schema deserialize(JsonParser parser, DeserializationContext context); @Override Class<?> handledType();  }
@Test public void handledType() { assertThat(new SchemaDeserializer().handledType(), is(equalTo(Schema.class))); }