@Test
public void tryToGetInstanceWithAcknowledgementsWithDifferentEntityIds() {

    final ThingId otherEntityId = ThingId.of("com.example:flux-condensator");
    final Acknowledgement otherAcknowledgement =
            ImmutableAcknowledgement.of(DittoAcknowledgementLabel.TWIN_PERSISTED, otherEntityId, KNOWN_STATUS_CODE,
                    KNOWN_DITTO_HEADERS, null);
    final List<Acknowledgement> acknowledgements = Lists.list(KNOWN_ACK_1, otherAcknowledgement);
    assertThatExceptionOfType(IllegalArgumentException.class)
            .isThrownBy(() -> ImmutableAcknowledgements.of(acknowledgements, KNOWN_DITTO_HEADERS))
            .withMessage("The entity ID <%s> is not compatible with <%s>!", otherEntityId, KNOWN_ENTITY_ID)
            .withNoCause();
}