@Test
public void castToShort() {

    final TypedExpression left = expr(THIS_PLACEHOLDER + ".getAgeAsShort()", java.lang.Short.class);
    final TypedExpression right = expr("40", int.class);
    final CoercedExpression.CoercedExpressionResult coerce = new CoercedExpression(left, right, false).coerce();
    assertEquals(expr("(short)40", int.class), coerce.getCoercedRight());
}