UpdateImpl extends BaseSqlPart implements Update { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend(mTableName).prepend("UPDATE "); } UpdateImpl(@NotNull final String tableName); @NotNull @Override Set set(@NotNull final String... columnNames); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }
@Test public void prependTo_prependsProperSql() { UpdateImpl update = new UpdateImpl("my_table"); RawSqlBuilder builder = new RawSqlBuilderImpl(); update.prependTo(builder); assertThat(builder.toString(), is("UPDATE my_table")); }