@Test
public void testIntegerToBooleanError() {

    final TypedExpression left = expr(THIS_PLACEHOLDER + ".getBooleanValue", Boolean.class);
    final TypedExpression right = expr("1", Integer.class);
    Assertions.assertThatThrownBy(() -> new CoercedExpression(left, right, false).coerce())
            .isInstanceOf(CoercedExpression.CoercedExpressionException.class);
}