@Test
public void parseJsonRepresentationWithoutAcknowledgements() {

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