@Test
public void prependTo_prependsProperSql() {

  /* Given */
  AsImpl as = new AsImpl(select().from("my_table"), mock(SqlPart.class));
  RawSqlBuilder builder = new RawSqlBuilderImpl();
  /* When */
  as.prependTo(builder);
  /* Then */
  assertThat(builder.toString(), is("AS SELECT * FROM my_table"));
}