public void testDeleteAsynchronously(ConsistencyLevel cl) throws Exception {
Thing thing = Thing.random();
t.insert(thing);
ThingDeletionListener listener = new ThingDeletionListener();
t.deleteAsynchronously(thing, listener, new WriteOptions(cl, RetryPolicy.LOGGING));
listener.await();
if (listener.exception != null) {
throw listener.exception;
}
assertFalse(t.exists(Thing.class, id("stuff", thing.stuff)));