RollbackTransactionImpl extends BaseFinishedStatement implements RollbackTransaction { @NotNull @Override public To to() { return new ToImpl(this); } RollbackTransactionImpl(@NotNull final SqlPart previous); @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 to_returnsNotNull() { RollbackTransactionImpl rollbackTransaction = new RollbackTransactionImpl(mock(SqlPart.class)); To result = rollbackTransaction.to(); assertThat(result, is(notNullValue())); }
@Test public void to_savePointName_returnsNotNull() { RollbackTransactionImpl rollbackTransaction = new RollbackTransactionImpl(mock(SqlPart.class)); SavePoint result = rollbackTransaction.to("savePointName"); assertThat(result, is(notNullValue())); }