public void testCsvUpload() throws LongRunningQueryException, SodaError, InterruptedException, IOException
{
final Soda2Producer producer = createProducer();
final InputStream csvStream = getClass().getResourceAsStream("/testNominations.csv");
final UpsertResult results = producer.upsertStream(UPDATE_DATA_SET, HttpLowLevel.CSV_TYPE, csvStream);
TestCase.assertEquals(2, results.getRowsCreated());
TestCase.assertEquals(0, results.errorCount());
TestCase.assertEquals(0, results.getRowsDeleted());
TestCase.assertEquals(0, results.getRowsUpdated());