BeginImpl extends BaseSqlPart implements Begin { @NotNull @Override public Immediate immediate() { return new ImmediateImpl(this); }  @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 immediate_returnsNotNull() { BeginImpl begin = new BeginImpl(); Immediate result = begin.immediate(); assertThat(result, is(notNullValue())); }