@VisibleForTesting
  Object evaluate(final GenericRow row) {
    return term.getValue(new TermEvaluationContext(row));
  }
@Test
  public void shouldEvaluateCastToString() {
    // Given:
    final Expression cast1 = new Cast(
        new IntegerLiteral(10),
        new Type(SqlPrimitiveType.of("STRING"))
    );
    final Expression cast2 = new Cast(
        new LongLiteral(1234L),
        new Type(SqlPrimitiveType.of("STRING"))
    );
    final Expression cast3 = new Cast(
        new DoubleLiteral(12.5),
        new Type(SqlPrimitiveType.of("STRING"))
    );
    final Expression cast4 = new Cast(
        new DecimalLiteral(new BigDecimal("4567.5")),
        new Type(SqlPrimitiveType.of("STRING"))
    );

    // When:
    InterpretedExpression interpreter1 = interpreter(cast1);
    InterpretedExpression interpreter2 = interpreter(cast2);
    InterpretedExpression interpreter3 = interpreter(cast3);
    InterpretedExpression interpreter4 = interpreter(cast4);

    // Then:
    assertThat(interpreter1.evaluate(ROW), is("10"));
    assertThat(interpreter2.evaluate(ROW), is("1234"));
    assertThat(interpreter3.evaluate(ROW), is("12.5"));
    assertThat(interpreter4.evaluate(ROW), is("4567.5"));
  }