SchemaSerializer extends JsonSerializer<Schema> { @Override public Class<Schema> handledType() { return Schema.class; }  @Override void serialize(Schema schema, JsonGenerator generator, SerializerProvider provider); @Override Class<Schema> handledType();  }
@Test public void handledType() { assertThat(new SchemaSerializer().handledType(), is(equalTo(Schema.class))); }