AnalyzeImpl extends BaseFinishedStatement implements Analyze { @Nullable @Override public SqlPart previous() { return null; }  @Override AnalyzeImpl database(@NotNull final String databaseName); @Override AnalyzeImpl tableOrIndex(@NotNull final String tableOrIndexName); @Override AnalyzeImpl databaseAndTableOrIndex(@NotNull final String databaseName, @NotNull final String tableOrIndexName); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }
@Test public void previous_returnsNull() { AnalyzeImpl analyze = new AnalyzeImpl(); SqlPart previous = analyze.previous(); assertThat(previous, is(nullValue())); }