public AstNode rewrite(final AstNode node, final C context) {
    return rewriter.process(node, context);
  }
@Test
  public void shouldRewriteAliasedRelation() {
    // Given:
    final AliasedRelation aliasedRelation = new AliasedRelation(location, relation, SourceName.of("alias"));
    when(mockRewriter.apply(relation, context)).thenReturn(rewrittenRelation);

    // When:
    final AstNode rewritten = rewriter.rewrite(aliasedRelation, context);

    // Then:
    assertThat(
        rewritten,
        equalTo(new AliasedRelation(location, rewrittenRelation, SourceName.of("alias"))));
  }