EndImpl extends BaseSqlPart implements End { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("END"); }  @NotNull @Override FinishedStatement transaction(); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }
@Test public void prependTo_prependsProperSql() { EndImpl end = new EndImpl(); RawSqlBuilder builder = new RawSqlBuilderImpl(); end.prependTo(builder); assertThat(builder.toString(), is("END")); }