ValuesImpl extends BaseFinishedInsertStatement implements Values { @Nullable @Override public SqlPart previous() { return mPrevious; } ValuesImpl(@NotNull final Object[] expressions, @NotNull final InsertColumnsImpl previous);   ValuesImpl(@NotNull final Object[] expressions, @NotNull final SqlPart previous); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override Object[] getArguments(); @Nullable @Override SqlPart previous();  }
@Test public void previous_returnsProperItem() { SqlPart sqlPart = mock(SqlPart.class); ValuesImpl values = new ValuesImpl(new Object[] {"a"}, sqlPart); SqlPart result = values.previous(); assertThat(result, is(sqlPart)); }