DeleteFromImpl extends BaseFinishedDeleteStatement implements DeleteFrom { @NotNull @Override public DeleteWhere where(@NotNull final String expression, @NotNull final Object... arguments) { return new DeleteWhereImpl(expression, arguments, this); } DeleteFromImpl(@Nullable final String databaseName, @NotNull final String tableName, @NotNull final SqlPart previous); @NotNull @Override DeleteWhere where(@NotNull final String expression, @NotNull final Object... arguments); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }
@Test public void where_returnsNotNullValue() { DeleteFromImpl deleteFrom = new DeleteFromImpl(null, "table", mock(SqlPart.class)); DeleteWhere result = deleteFrom.where("a=?", 1); assertThat(result, is(notNullValue())); }