CommitImpl extends BaseSqlPart implements Commit { @NotNull @Override public FinishedStatement transaction() { return new TransactionImpl(this); }  @NotNull @Override FinishedStatement transaction(); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }
@Test public void transaction_returnsNotNull() { CommitImpl commit = new CommitImpl(); FinishedStatement result = commit.transaction(); assertThat(result, is(notNullValue())); }