RollbackImpl extends BaseFinishedStatement implements Rollback { @Nullable @Override public SqlPart previous() { return null; }  @NotNull @Override RollbackTransaction transaction(); @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 previous_returnsNull() { RollbackImpl rollback = new RollbackImpl(); SqlPart result = rollback.previous(); assertThat(result, is(nullValue())); }