BeginImpl extends BaseSqlPart implements Begin { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("BEGIN"); }  @NotNull @Override Transaction transaction(); @NotNull @Override Deferred deferred(); @NotNull @Override Immediate immediate(); @NotNull @Override Exclusive exclusive(); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }
@Test public void prependTo_prependsProperSql() { BeginImpl begin = new BeginImpl(); RawSqlBuilder builder = new RawSqlBuilderImpl(); begin.prependTo(builder); assertThat(builder.toString(), is("BEGIN")); }