@Test
public void isCompatibleOrThrowBehavesCorrectly() {

    if (parameter.shouldBeCompatible) {
        assertThat(parameter.blue.isCompatibleOrThrow(parameter.green)).isTrue();
    } else {
        assertThatIllegalArgumentException()
                .isThrownBy(() -> parameter.blue.isCompatibleOrThrow(parameter.green))
                .withMessage("The entity ID <%s> is not compatible with <%s>!", parameter.green, parameter.blue)
                .withNoCause();
    }
}