@Test
public void parseJsonRepresentationWithoutStatusCode() {

    final JsonFieldDefinition<Integer> statusCodeFieldDefinition = Acknowledgements.JsonFields.STATUS_CODE;
    final JsonObject jsonRepresentation = JsonFactory.newObjectBuilder(knownAcknowledgements.toJson())
            .remove(statusCodeFieldDefinition)
            .build();
    assertThatExceptionOfType(JsonMissingFieldException.class)
            .isThrownBy(() -> underTest.apply(jsonRepresentation))
            .withMessageContaining(statusCodeFieldDefinition.getPointer().toString())
            .withNoCause();
}