TestCase.assertEquals(0, errors1.getRowsCreated());
TestCase.assertEquals(2, errors1.getRowsUpdated());
TestCase.assertEquals(0, errors1.getRowsDeleted());
UpsertResult errors2 = Soda2Producer.deserializeUpsertResult(new ByteArrayInputStream(SODA_SERVER_UPSERT_RESULT_2_OLD.getBytes("utf-8")));
TestCase.assertEquals(2, errors2.errorCount());
TestCase.assertEquals("error2", errors2.getErrors().get(0).getError());
TestCase.assertEquals("key2", errors2.getErrors().get(0).getPrimaryKey());
TestCase.assertEquals("error3", errors2.getErrors().get(1).getError());
TestCase.assertEquals("key3", errors2.getErrors().get(1).getPrimaryKey());
TestCase.assertEquals(0, errors2.getRowsCreated());