@Test
public void prependTo_prependsProperSql() {

  /* Given */
  Column columnMock = new Column() {
    @Override
    public void prependTo(@NotNull final RawSqlBuilder builder) {
      builder.prepend("test_column");
    }
    @Nullable
    @Override
    public SqlPart previous() {
      return null;
    }
    @Nullable
    @Override
    public Object[] getArguments() {
      return null;
    }
  };
  SqlPart sqlPart = mock(SqlPart.class);
  AddColumnImpl addColumn = new AddColumnImpl(columnMock, sqlPart);
  RawSqlBuilder builder = new RawSqlBuilderImpl();
  /* When */
  addColumn.prependTo(builder);
  /* Then */
  assertThat(builder.toString(), is("ADD COLUMN test_column"));
}