BeginImpl extends BaseSqlPart implements Begin { @Nullable @Override public SqlPart previous() { return null; }  @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 previous_returnsNull() { BeginImpl begin = new BeginImpl(); SqlPart result = begin.previous(); assertThat(result, is(nullValue())); }