RollbackImpl extends BaseFinishedStatement implements Rollback { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("ROLLBACK"); }  @NotNull @Override RollbackTransaction transaction(); @NotNull @Override To to(); @NotNull @Override SavePoint to(@NotNull final String savePointName); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }
@Test public void prependTo_prependsProperSql() { RollbackImpl rollback = new RollbackImpl(); RawSqlBuilder builder = new RawSqlBuilderImpl(); rollback.prependTo(builder); assertThat(builder.toString(), is("ROLLBACK")); }