tDelete.setDurability(TDurability.FSYNC_WAL);
delete = deleteFromThrift(tDelete);
assertEquals(delete.getDurability(), Durability.FSYNC_WAL);
TPut tPut = new TPut(wrap(rowName), columnValues);
//if not setting writeToWal, check for default value
Put put = putFromThrift(tPut);
assertEquals(put.getDurability(), Durability.USE_DEFAULT);
//if setting writeToWal to true, durability should be CF default
tPut.setWriteToWal(true);
put = putFromThrift(tPut);
assertEquals(put.getDurability(), Durability.USE_DEFAULT);
//if setting writeToWal to false, durability should be SKIP_WAL
tPut.setWriteToWal(false);
put = putFromThrift(tPut);
assertEquals(put.getDurability(), Durability.SKIP_WAL);
tPut.setDurability(TDurability.SKIP_WAL);
put = putFromThrift(tPut);
assertEquals(put.getDurability(), Durability.SKIP_WAL);
tPut.setDurability(TDurability.ASYNC_WAL);
put = putFromThrift(tPut);
assertEquals(put.getDurability(), Durability.ASYNC_WAL);
tPut.setDurability(TDurability.SYNC_WAL);
put = putFromThrift(tPut);
assertEquals(put.getDurability(), Durability.SYNC_WAL);
tPut.setDurability(TDurability.FSYNC_WAL);
put = putFromThrift(tPut);
assertEquals(put.getDurability(), Durability.FSYNC_WAL);
}