@Test
public void parseJsonRepresentationWithInvalidAcknowledgementJsonRepresentation() {

    final Acknowledgements acknowledgements = Acknowledgements.of(Sets.newSet(knownAcknowledgement), dittoHeaders);
    final JsonFieldDefinition<JsonObject> acknowledgementsFieldDefinition =
            Acknowledgements.JsonFields.ACKNOWLEDGEMENTS;
    final int invalidAcknowledgement = 42;
    final JsonObject invalidAcknowledgements = JsonObject.newBuilder()
            .set(knownAcknowledgement.getLabel(), invalidAcknowledgement)
            .build();
    final JsonObject jsonRepresentation = JsonFactory.newObjectBuilder(acknowledgements.toJson())
            .set(acknowledgementsFieldDefinition, invalidAcknowledgements)
            .build();
    assertThatExceptionOfType(JsonParseException.class)
            .isThrownBy(() -> underTest.apply(jsonRepresentation))
            .withMessage("<%d> is not an Acknowledgement JSON object representation!", invalidAcknowledgement)
            .withNoCause();
}