@Test
public void parseJsonRepresentationWithoutDittoHeaders() {

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