ContractDeserializer extends JsonDeserializer<Contract> { @Override public Class<?> handledType() { return Contract.class; }  @Override Contract deserialize(JsonParser parser, DeserializationContext ctxt); @Override Class<?> handledType();  }
@Test public void handle_contract_type() throws Exception { ContractDeserializer contractDeserializer = new ContractDeserializer(); assertThat(contractDeserializer.handledType()).isEqualTo(Contract.class); }