@Test
public void deserialize_an_contact_with_an_input_without_name() throws Exception {

    Contract anEmptyContract = aContract()
            .withInput(aContractInput(null).withType(null).withDescription(null).build()).build();
    byte[] serializedContract = new ObjectMapper().writeValueAsBytes(anEmptyContract);
    ContractDeserializer contractDeserializer = new ContractDeserializer();
    Contract contract = contractDeserializer.deserialize(new JsonFactory(new ObjectMapper()).createParser(serializedContract), null);
    assertThat(contract.getInput()).extracting("name", "type", "description", "mandatory", "multiple", "input")
            .contains(tuple("", String.class.getName(), null, false, false, newArrayList()));
}