AlterImpl extends BaseSqlPart implements Alter { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("ALTER"); }  @NotNull @Override AlterTable table(@NotNull final String tableName); @NotNull @Override AlterTable table(@Nullable final String databaseName, @NotNull final String tableName); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }
@Test public void prependedSql_isProper() { RawSqlBuilder builder = new RawSqlBuilderImpl(); mAlter.prependTo(builder); assertThat(builder.toString(), is("ALTER")); }