}
@Test
public void testAsyncSave() {
// Get a result set and make some changes to it
IResultSet resultSet = storageSource.executeQuery(PERSON_TABLE_NAME, null, null, new RowOrdering(PERSON_SSN));
resultSet.next();
resultSet.deleteRow();
resultSet.next();
resultSet.setString(PERSON_FIRST_NAME, "John");
Future<?> future = storageSource.saveAsync(resultSet);
waitForFuture(future);
try {
resultSet = storageSource.executeQuery(PERSON_TABLE_NAME, null, null, new RowOrdering(PERSON_SSN));
Object[][] expectedPersons = Arrays.copyOfRange(PERSON_INIT_DATA, 1, PERSON_INIT_DATA.length);
expectedPersons[0][1] = "John";
checkExpectedResults(resultSet, PERSON_COLUMN_LIST, expectedPersons);
}
catch (Exception e) {