EndImpl extends BaseSqlPart implements End { @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() { EndImpl end = new EndImpl(); FinishedStatement result = end.transaction(); assertThat(result, is(notNullValue())); }