ValuesImpl extends BaseFinishedInsertStatement implements Values { @Nullable @Override public Object[] getArguments() { return mExpressions.clone(); } 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 getArguments_singleItem_returnsProperArguments() { ValuesImpl values = new ValuesImpl(new Object[] {"a"}, mock(SqlPart.class)); Object[] arguments = values.getArguments(); assertThat(arguments, is(arrayContaining((Object) "a"))); }
@Test public void getArguments_multipleItems_returnsProperArguments() { ValuesImpl values = new ValuesImpl(new Object[] {"a", "b", "c"}, mock(SqlPart.class)); Object[] arguments = values.getArguments(); assertThat(arguments, is(arrayContaining((Object) "a", "b", "c"))); }