@Test
public void parseJsonRepresentationWithoutEntityType() {

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