public Expression rewrite(final Expression expression) {
    return new ExpressionTreeRewriter<>(new OperatorPlugin()::process)
        .rewrite(expression, null);
  }
@Test
  public void shouldReplaceBetweenRowTimeAndStrings() {
    // Given:
    final Expression predicate = getPredicate(
        "SELECT * FROM orders where ROWTIME BETWEEN '2017-01-01' AND '2017-02-01';");

    // When:
    final Expression rewritten = rewriter.rewrite(predicate);

    // Then:
    assertThat(
        rewritten.toString(),
        is(String.format("(ORDERS.ROWTIME BETWEEN %d AND %d)", A_TIMESTAMP, ANOTHER_TIMESTAMP))
    );
  }