CommitImpl extends BaseSqlPart implements Commit { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("COMMIT"); }  @NotNull @Override FinishedStatement transaction(); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }
@Test public void prepcommitTo_prepcommitsProperSql() { CommitImpl commit = new CommitImpl(); RawSqlBuilder builder = new RawSqlBuilderImpl(); commit.prependTo(builder); assertThat(builder.toString(), is("COMMIT")); }